Transcript for Deadly shooting at Pensacola military base
We begin with new details on that deadly shooting rampage at a Navy base in Florida. Pensacola naval air station is open only to essential personnel this morning after a gunman opened fire. And here's what we know right now as we come on the air. Three people dead, several more injured and investigators say the gunman was a Saudi national and a member of the royal Saudi air force receiving training at that base. The FBI also says it's still looking into the motive for the shooting but investigators are examining hate-filled anti-american writings online to determine whether they were posted by the suspect. ABC's Stephanie Ramos is right there on the ground in Pensacola with the latest on the investigation and the very brave people who took that shooter down. Stephanie, good morning to you. Reporter: Dan, good morning. That naval base is back open this morning for certain workers through the weekend and the families who live here now have access to their homes again but this area is still so shaken by the shooting that took place just about 24 hours ago after a Saudi national who was part of a training program went on a deadly rampage. This morning, the officers struck by gunfire at naval air station Pensacola are recovering as we learn more about this man, second lieutenant Mohammed Al shamrani attending flight training with the U.S. Navy opened fire in one of the classroom buildings. Police officers on scene within minutes. We were fortunate to get some pretty exact information so the officers knew specifically where to respond to. Reporter: Investigators are now reviewing an online writing believed to be authored by Al shamrani, in it, he hinted about America. Unraveling as students arrived to class. I have one Navy officer shot, appears multiple times. Reporter: Authorities say the gunman entered through the front doors an immediately started shooting, moving through two floors armed with a semi-automatic handgun, shooting at anyone in his way. Over ten patients confirmed. Reporter: Police say the shooter was slow downed down when pun barricaded a door allowing others to get out the back of the building. Four sheriff's deputies located the attacker, chased him while firing while an officer shot back. Two officers hit, one shot in the arm, the other in the knee. Yet, they continued to fire at the suspect eventually killing him. Eight people were injured. Four killed include the gunman. Resources being allocated and flown here is astounding and you, the family members and loved wins should know that. You should also know that we will be absolutely relentless. Reporter: The department of defense reports that more than 5100 foreign students from 153 countries are in the U.S. For military training. President trump briefed on the situation says he received a call from the king of Saudi Arabia. The king said that the Saudi people are greatly angered by the barbaric actions of the shooter and that this person in way, shape or form represents the feelings of the Saudi people who love the American people so much. Reporter: This comes just days after the deadly shooting at pearl harbor naval shipyard Wednesday. Authorities now say the shooter there was angry with his commanders even undergoing counseling before opening fire killing two contractors and injuring a third. The chief of naval operations tweeting this has been a devastating week for our U.S. Our hearts break for those who lost their lives in Pensacola and the wrenching pain it causes their loved ones. Right now it's unclear what the motive was. Investigators aren't giving those specifics just yet but do say they're interviewing the gunman's classmates to find out if they heard or saw anything that can help them figure out why the gunman opened fire. Now, it is worth noting that four nationals do routinely train in the U.S. When their native countries buy American military aircraft. Dan. Stephanie Ramos on the ground in Pensacola, thank you.
This transcript has been automatically generated and may not be 100% accurate.