ABC News December 12, 2019

Shooting at Pensacola air base was likely 'terror' attack inspired by radical Islamist ideology, sources say

WATCH: Eyewitness to Pensacola naval base shooting speaks out

Federal investigators have determined that the shooting at a Florida air base that killed three people was likely a "terror" attack inspired by radical Islamic ideology, three sources briefed on the ongoing investigation told ABC News.

On Dec. 6, Mohammed Alshamrani, 21, a second lieutenant in the Saudi Air Force, allegedly opened fire inside a classroom at Air Base Pensacola, killing three U.S. Navy personnel and injuring another eight people. Alshamrani was shot and killed by Escambia County Sheriff's deputies at the scene.

(MORE: Fatal shootings at US military bases highlight unexpected and growing threat -- insiders with access badges)

Alshamrani was in the United States for flight training and purchased the Glock 9 mm pistol he used in the attack about four months ago by taking advantage of a federal gun exception that allows foreign nationals to legally purchase weapons for hunting, authorities said.

FBI
Mohammed Alshamrani in a photo released by the FBI.

Alshamrani allegedly followed radical Islamist content online, including sermons by the American-born cleric Anwar al Awlaki, who was killed in 2011 in a CIA-led drone strike.

(MORE: Saudi pilot used gun loophole to buy murder weapon used in shooting at Pensacola air base, FBI says)

Alshamrani traveled to New York city shortly before the attack, authorities said, but the travel was likely related to his training and not an effort by him to seek out potential targets.

FBI
The FBI investigates the NAS Pensacola shooting in Floirda.

The U.S. Department of Defense has since suspended operational training for all Saudi students in the wake of the shooting.

(MORE: DOD suspends operational training for all Saudi students in wake of Pensacola shooting)

The FBI has not officially designated the shooting as a terror attack, saying only that it is being investigated with the "presumption" that it was an act of terror.

Mark Makela/Getty Images, FILE
Military personnel carry a transfer case for fallen service member, U.S. Navy Ensign Joshua Watson, during a dignified transfer at Dover Air Force Base on Dec. 8, 2019 in Dover, Del.

Federal investigators are also probing a report that Alshamrani watched mass-shooting videos in the presence of some friends in the days leading up to the attack, two sources briefed on the probe told ABC News.

ABC News' Bill Hutchinson and Aaron Katersky contributed to this report.