PENSACOLA, Fla. — The Saudi gunman who killed three people at the Pensacola naval base had apparently gone on Twitter shortly before the shooting to blast US support of Israel and accuse America of being anti-Muslim, a US official said Sunday as the FBI confirmed it is operating on the assumption the attack was an act of terrorism.
Investigators are also trying to establish whether the killer, Second Lieutenant Mohammed Alshamrani, 21, of the Royal Saudi Air Force, acted alone or was part of a larger plot.
Alshamrani, who was killed by a sheriff’s deputy during the rampage at a classroom building Friday, was undergoing flight training at Pensacola, where members of foreign militaries routinely receive instruction.
“We are, as we do in most active-shooter investigations, work with the presumption that this was an act of terrorism,” said Rachel L. Rojas, FBI agent in charge.
Authorities believe the gunman made social media posts criticizing the US under a user handle similar to his name, but federal law enforcement officials are investigating whether he authored the words or just posted them, said the official, who was not authorized to discuss the matter publicly and spoke to The Associated Press on condition of anonymity.
Also, investigators believe the gunman visited New York City, including Rockefeller Center, days before the shooting and are working to determine the purpose of the trip, the official said.
All foreign students at the Pensacola base have been accounted for, no arrests have been made, and the community is under no immediate threat, Rojas said at a news conference. A Saudi commanding officer has ordered all students from the country to remain at one location at the base, authorities said.
“There are a number of Saudi students who are close to the shooter and continue to cooperate in this investigation,’’ Rojas said. “The Saudi government has pledged to fully cooperate with our investigation.”
Earlier in the week of the shooting, Alshamrani hosted a dinner party where he and three others watched videos of mass shootings, another US official said Saturday.
Alshamrani used a Glock 9 mm weapon that had been purchased legally in Florida, Rojas said.
Family members and others identified the three dead as Joshua Kaleb Watson, a 23-year-old graduate of the US Naval Academy; Airman Mohammed Sameh Haitham, 19, of St. Petersburg, who joined the Navy after graduating from high school last year; and Airman Apprentice Cameron Scott Walters, 21, of Richmond Hill, Ga.
The official who spoke Saturday said one of the three students who attended the dinner party hosted by the attacker recorded video outside the classroom building while the shooting was taking place. Two other Saudi students watched from a car, the official said.
In a statement, the FBI confirmed Sunday that it had obtained base surveillance videos as well as cellphone footage taken by a bystander outside the building, and had also interviewed that person.
Rojas would not directly answer when asked whether other students knew about the attack beforehand or whether there was anything ‘‘nefarious’’ about the making of the video. She said that a lot of information needs to be confirmed by investigators and that she did not want to contribute to “misinformation” circulating about the case.
Rojas said federal authorities are focused on questioning the gunman’s friends, classmates and other associates. ‘‘Our main goal is to confirm if he acted alone or was he part of a larger network,’’ she said.
President Trump’s national security adviser, Robert O’Brien, said on CBS’ “”Face the Nation’’ that the shooting looked like “terrorism or akin to terrorism.’’ But he cautioned that the FBI was still investigating.
“Look, to me it appears to be a terrorist attack,’’ he said. “I don’t want prejudge the investigation, but it appears that this may be someone that was radicalized.’’ O’Brien said he did not see evidence so far of a “broader plot.”
The US has long had a robust training program for Saudis, providing assistance in the US and in the kingdom. More than 850 Saudis are in the United States for various training activities. They are among more than 5,000 foreign students from 153 countries in the US going through military training.
“This has been done for many decades,” Trump said on Saturday. “I guess we’re going to have to look into the whole procedure. We’ll start that immediately.’’