Transcript for Deadly Navy base rampage in Florida
We begin with new reporting just in after the deadly shooting rampage at the Navy air station in Pensacola. The gunman, a member of the royal Saudi air force. Authorities say he was apparently shooting at random. The training site put on lockdown. At least three killed, eight among the wounded, two sheriff's deputies. Tonight, sources telling ABC news investigators are looking at writings to determine if they were written by the gunman. In the writings, it says he hates America. Eva pilgrim from the scene in Pensacola. Reporter: Chaos inside a naval air station in Pensacola. The mass shooting shocking the military base. Tonight, ABC news has confirmed the gunman was Mohammed Saeed alshamrani, a member of the Saudi air force in the U.S. For flight training. The FBI investigating terrorism as a possible motive. A tight knit community reeling. It doesn't happen to our friends and neighbors who are members of United States Navy. But it did. And it has. Reporter: The first call for help coming in at 6:51 A.M. I have one Navy officer shot multiple times. Reporter: The base locked down. Police race to the scene within five minutes. The shooter moved through two floors of a classroom building, an area of the base where weapons are not allowed. Can I have an update on the possible patient count? Over ten patients confirmed. Reporter: The gunman moved methodically through the building armed with a handgun. Two sheriff's deputies coming face to face with the gunman, engaging in a shootout. Two officers are hit. One shot in the arm, the other in the knee. Despite being shot, returning fire, the accused gunman killed. I think it could have been a lot worse if we didn't -- if we don't train the way we do to try and minimize casualties in events like this. Reporter: Eight injured, four killed, including the gunman. The president briefed on the situation, saying he took a call from the Saudi king expressing that country's outrage. The king said that the Saudi people are greatly angered by the barbaric actions of the shooter and that this person in no way, shape, or form represents the feelings of the Saudi people, who love the American people so much. Reporter: Tonight that community grieving for the lives lost. Grateful to those who risked their lives to stop the shooting. There was some real heroism today. I mean, real heroism. I am devastated. We are in shock. This is surreal. But I couldn't be prouder to wear the uniform I wear. Let's bring in Eva, live in Pensacola. Sources are telling ABC news just before we came on the air, they're now investigating the hate-filled writings found online, and they believe they might be from the shooter? Reporter: That's right, David. Investigators tell us part of this probe is a posting where the writer says he hates America because of its crimes against muslims and humanity. And authorities are working to determine if those writings are legit. Many asking, why was he training here in the U.S.? Reporter: David, any country that buys military aircraft from the U.S. Is then trained at a designated base here in America. Hundreds of Saudis have been trained at military bases across the U.S. Since the early '70s. David? Eva, thank you. Meantime, the rampage in Pensacola is the second deadly
This transcript has been automatically generated and may not be 100% accurate.