An aviation student from Saudi Arabia was responsible for killing three people at a military base in the United States on Friday.
The gunman, who was a second lieutenant in the Saudi Air Force, also died at Naval Air Station in Pensacola.
Twelve people were injured in total, including two sheriff's deputies who were the first to respond, one of whom was shot in the arm and the other in the knee, and both were expected to recover.
The student was shot dead by a sheriff's deputy.
US President Donald Trump tweeted his condolences to the victims' families and noted he had received a phone call from Saudi King Salman.
The FBI said it was is working under the presumption that the shooting was an act of terrorism.
He said the king told him: "The Saudi people are greatly angered by the barbaric actions of the shooter, and that this person in no way shape or form represents the feelings of the Saudi people who love the American people."
The Saudi government offered condolences to the victims and their families and said it would provide "full support" to US authorities investigating the shooting.
"The Ministry of Foreign Affairs affirms that the perpetrator of this horrific attack does not represent the Saudi people whatsoever," the government said in a statement.
"The American people are held in the highest regard by the Saudi people."
Saudi Arabia has relied on the US to train its military.
NAS Pensacola employs more than 16,000 military personnel and 7,400 civilians, according to its website.
Cover image: NAS Pensacola/Facebook.