PENSACOLA, FLORIDA - DECEMBER 06: A general view of the atmosphere at the Pensacola Naval Air Station main gate following a shooting on December 06, 2019 in Pensacola, Florida. The second shooting on a U.S. Naval Base in a week has left three dead plus the suspect and seven people wounded.  (Photo by Josh Brasted/Getty Images)
Josh Brasted/Getty Images North America/Getty Images
PENSACOLA, FLORIDA - DECEMBER 06: A general view of the atmosphere at the Pensacola Naval Air Station main gate following a shooting on December 06, 2019 in Pensacola, Florida. The second shooting on a U.S. Naval Base in a week has left three dead plus the suspect and seven people wounded. (Photo by Josh Brasted/Getty Images)
Now playing
02:05
Source: Saudi who took video was not involved in attack
Now playing
01:24
How Kyra Sedgwick got the cops called on Tom Cruise
Now playing
05:18
Anderson Cooper explains how he overcomes being shy
US Navy
Now playing
01:28
Pentagon confirms UFO video is real, taken by Navy pilot
Kristina Barboza
Now playing
03:09
Grieving mom's advice to other families: You can try to help, support and love
Fancy Feast/Purina
Now playing
01:06
Cat food company makes a cookbook ... for humans
Now playing
02:35
WWII veteran: End of the war was 'the biggest thrill of my life'
Google Earth's new timelapse feature
Google
Google Earth's new timelapse feature
Now playing
01:09
Google Earth's new Timelapse feature shows 40 years of climate change in just seconds
FOX/"The Masked Singer"
Now playing
01:23
'The Masked Singer' reveals identity of The Orca
LONDON, ENGLAND - DECEMBER 07:  A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs.  (Photo by Dan Kitwood/Getty Images)
Dan Kitwood/Getty Images
LONDON, ENGLAND - DECEMBER 07: A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs. (Photo by Dan Kitwood/Getty Images)
Now playing
03:07
Bitcoin has an energy problem
The new all-electric Mercedes-EQS
Mercedes-Benz AG
The new all-electric Mercedes-EQS
Now playing
01:05
See the new all-electric EQS luxury sedan from Mercedes
Now playing
01:32
Scientists turned spiderwebs into music and it sounds like a nightmare
Jeopardy Productions, Inc.
Now playing
01:02
Aaron Rodgers' Green Bay Packers question stumps 'Jeopardy!' contestants
Now playing
05:18
Coinbase CFO: We're an on-ramp to the crypto economy
CNN
Now playing
02:12
'Too dangerous to do anymore': Sacha Baron Cohen on Borat
John Avlon 0413 Wallace
CNN
John Avlon 0413 Wallace
Now playing
03:31
Avlon compares Tucker Carlson's comments to George Wallace
(CNN) —  

The FBI is treating Friday’s attack at Naval Air Station Pensacola as “an act of terror,” a member of the agency said, although the motive remains undetermined.

Working under the “presumption that this was an act of terrorism” will allow agents to take advantage of certain investigative techniques, FBI Special Agent in Charge Rachel Rojas said.

Mohammed Alshamrani, a Saudi Arabian Air Force officer who had been in flight training at the base for two years, opened fire in a classroom building on Friday, killing three sailors who ran toward danger to protect others, officials said. Several others were injured.

The shooter used a handgun in the attack and was killed after two deputies exchanged gunfire with him.

The deadly shooting “appears to be a terrorist attack,” White House national security adviser Robert O’Brien said. Authorities haven’t found ties between the attacker and terrorist groups.

“We don’t know yet if he was acting alone,” O’Brien said on CBS’ “Face the Nation” Sunday. “The FBI is investigating, and they’ve been interviewing, interrogating other Saudi students.”

The victims were Airman Mohammed Sameh Haitham, 19, of St. Petersburg, Florida; Airman Apprentice Cameron Scott Walters, 21, of Richmond Hill, Georgia; and Ensign Joshua Kaleb Watson, 23, from Enterprise, Alabama.

“If not for their actions, and the actions of the Naval Security Force that were the first responders on the scene, this incident could have been far worse,” said Capt. Tim Kinsella, the commanding officer of Naval Air Station Pensacola.

Several other Saudi nationals were questioned

Alshamrani was at the base as part of an ongoing US military program training members of foreign militaries, including Saudi Arabia’s.

US Defense Secretary Mark Esper said the Department of Defense will look at the measures currently in place to insure proper vetting and screening of foreign students. Still, he said, the shooting likely wouldn’t impact the US-Saudi alliance.

“I don’t see this undermining the deeper relationship we’ve had with the Kingdom of Saudi Arabia for decades,” he said.

Over the weekend, several Saudi nationals were detained for questioning in connection to the attack, a US official told CNN. The official didn’t provide information on their connection to the gunman.

On Monday, a high-ranking Saudi defense attaché is traveling to Pensacola to meet with US officials involved in the shooting probe. Tension has risen between the countries over the continued restriction to the base of up to a dozen Saudi nationals, a person familiar with the case said.

The Saudi nationals have been generally cooperating but have made requests to leave their confinement on the military base. On Sunday, the FBI said that they have been restricted to base by their Saudi commanding officer.

Questions still remain about what they knew about the shooter, and whether they had any advance knowledge that an attack was coming, the source said.

The Saudis had already sent lawyers down to Florida to deal with the fallout from the shooting, another source familiar with the investigation told CNN’s Kylie Atwood Saturday.

Some of the Saudis have told investigators about a dinner party the shooter hosted ahead of the attack where the group watched mass shooting videos, the source said.

Alshamrani and a small group of Saudi nationals traveled to New York City over the Thanksgiving holiday, a law enforcement official told CNN. They visited several museums and Rockefeller Center, the source said, but authorities don’t know why they traveled to the city. The Saudis who accompanied Alshamrani are currently being interviewed by law enforcement and are being cooperative, the source added.

Twitter account may have been linked to shooter

Minutes before authorities were alerted to the attack, a Twitter account aligning with the shooter’s name posted a message that raises the possibility the attack was inspired by al Qaeda and its founder, Osama bin Laden, CNN’s Nic Robertson and Paul Cruickshank wrote.

Mohammed Alshamrani
FBI
Mohammed Alshamrani

The message, addressed to the American people, declared hate for Americans because of their “crimes” against Muslims. It made no reference to an impending attack. Instead, it repurposed words used by bin Laden and the American al Qaeda terrorist cleric Anwar al-Awlaki.

CNN has been unable to verify the source of the tweet which was previously reported on by SITE Intelligence Group. Law enforcement has not commented on it.

A Twitter spokeswoman says the account was suspended, adding “That’s all we have to share.”

Florida Gov. Ron DeSantis said in a Sunday news conference the shooter had “a major social media trail.”

“This guy was somebody who had just a deep-seated hatred for the United States and that was pretty clear from that,” he said.

“For us to be bringing in these foreign nationals, you have to take precautions to protect the country.”

Foreign students from “partner nations” have trained at the base for years, Kinsella said.

The shooter was vetted before his entry into the pilot training program and after the shooting with nothing of concern found, a law enforcement source told CNN. But DeSantis said Sunday the shooting could have been prevented if there was “better vetting.”

He bought his weapon using a hunting license

The shooter had bought the gun he used in the attack legally, two law enforcement officials told CNN.

One source said Alshamrani purchased the weapon from a gun store earlier this year using a hunting license, which allows a non-immigrant on a non-immigrant visa to purchase a gun.

01:06 - Source: CNN
President Trump responds to Pensacola shooting news

Alshamrani used a Glock 9 mm pistol he bought “legally and lawfully,” Rojas told reporters.

Alshamrani’s uncle said his nephew had done “nothing suspicious” before moving to the US.

Saad bin Hantim Alshamrani said his nephew was “likable and mannered towards his family and the community.” The uncle said Alshamrani “has his religion, his prayer, his honesty and commitments” and that he was a “likable kid, smart, he was exceptionally smart.”

CNN’s Jay Croft, Nicole Chavez, Steve Almasy and Barbara Starr contributed to this report.