The suspect in the Naval Air Station Pensacola shooting has been identified as an aviation student from Saudi Arabia, raising questions about whether the shooting was an act of terrorism.

The suspect began shooting in a classroom building early Friday morning, killing four. The shooter was then killed by responding officers. Seven people were injured, including the officers.

MORE: Investigators are trying to determine whether the shooting was terror-related, law enforcement officials say. https://t.co/rXdxaHNC6p — ABC News (@ABC) December 6, 2019

#BREAKING: A U.S. official says the suspect in the shooting at the Naval Air Station in Pensacola was an aviation student from Saudi Arabia.



•4 killed, included gunman



•gunman killed by deputies



•7 injured, including 2 deputies — Jennifer Franco (@jennfranconews) December 6, 2019

The shooter was a Saudi national in the U.S. for flight training, two law enforcement officials familiar with the investigation told ABC News. Investigators are trying to determine whether the shooting was terror-related or not, the officials said. (ABC News)

“This is a tragic day for the city of Pensacola… we are a military town, our hearts and prayers are connected to all those that serve us every single day,” the city’s mayor, Grover Robinson, said during a press conference. “We will overcome this, but today this is certainly a tragic day.”

Friday's shooting is the second on a Naval base this week. On Wednesday, an active duty sailor at the Pearl Harbor Naval Shipyard opened fire on civilian employees, killing two, before turning the gun on himself.