Official: Pensacola shooter was Saudi aviation student

Police vehicles block the entrance to the Pensacola Air Base, Friday, Dec. 6, 2019 in Pensacola, Fla. The US Navy is confirming that a shooter is dead and several injured after gunfire at the Naval Air Station in Pensacola. (Tony Giberson/ Pensacola News Journal via AP)
Police cars escort an ambulance after a shooter open fire inside the Pensacola Air Base, Friday, Dec. 6, 2019 in Pensacola, Fla. The US Navy is confirming that a shooter is dead and several injured after gunfire at the Naval Air Station in Pensacola. (Tony Giberson/ Pensacola News Journal via AP)
Police cars escort an ambulance after a shooter open fire inside the Pensacola Air Base, Friday, Dec. 6, 2019 in Pensacola, Fla. The US Navy is confirming that a shooter is dead and several injured after gunfire at the Naval Air Station in Pensacola. (Tony Giberson/ Pensacola News Journal via AP)
This photo taken from video provided by WEAR-TV shows emergency responders near the Naval Air Base Station in Pensacola, Fla., Friday, Dec. 6, 2019. The US Navy is confirming that an active shooter and one other person are dead after gunfire at the Naval Air Station in Pensacola. Area hospital representatives tell The Associated Press that at least 11 people were hospitalized. The base remains locked down amid a huge law enforcement response.  (WEAR-TV via AP)
FILE- In this Jan. 29, 2016 file photo shows the entrance to the Naval Air Base Station in Pensacola, Fla. The US Navy is confirming that an active shooter and one other person are dead after gunfire at the Naval Air Station in Pensacola. Area hospital representatives tell The Associated Press that at least 11 people were hospitalized. The base remains locked down amid a huge law enforcement response. (AP Photo/Melissa Nelson, File)

PENSACOLA, Fla. — An aviation student from Saudi Arabia opened fire in a classroom building at the Naval Air Station in Pensacola on Friday morning, a U.S. official said, an attack that left three dead in addition to the assailant.