Image copyright US Navy Image caption Mohammad Sameh Haitham and Joshua Kaleb Watson were two of three young sailors killed

The US has grounded hundreds of Saudi military aviation students at bases across the country in the wake of Friday's deadly shooting in Florida.

All flying will be paused, though classroom studies will continue.

It comes after Defence Secretary Mark Esper ordered a review following the shooting of three sailors at a navy base by a Saudi Air Force lieutenant.

The FBI said it was trying to determine the motive of the attacker, who was shot dead by police.

Investigators say they are working on the assumption that it was an act of terrorism.

The shooting at Pensacola has placed the long-standing US-Saudi relationship under scrutiny.

Ties have already been strained by the Saudi military offensive in Yemen and the murder of Washington Post columnist Jamal Khashoggi last year.

What has the US said?

"A safety stand-down and operational pause commenced Monday for Saudi Arabian aviation students," Navy Lt Commander Megan Isaac told the BBC.

She said the no-fly rule affects 303 Saudi students at three Florida Naval Air Stations: Pensacola, Whiting Field and Mayport.

Image copyright Getty Images

Pentagon civilian spokesman Chuck Prichard told the BBC that the no-fly rule covered Saudi aviation students US-wide.

He said the operational pause affects 852 Saudi students enrolled in all military programmes at "various locations" across the US, though classroom training continues for all.

A senior Pentagon official told the BBC's US partner, CBS News, that the training pause will last at least five to 10 days.

Media playback is unsupported on your device Media caption Florida governor: 'The Saudi government will owe a debt here'

The officials said the defence department is conducting a review of vetting for all 5,000 foreign military students training in the US.

Mr Esper told Fox News on Sunday he had instructed top defence officials to look into security measures at bases.

President Donald Trump has also pledged to review foreign military programmes.

How did the shooting happen?

The victims of last Friday's attack at the Pensacola base have been named as Joshua Kaleb Watson, 23, Mohammed Sameh Haitham, 19, and Cameron Scott Walters, 21.

Image copyright Getty Images Image caption The bodies of the sailors were transferred to Dover Air Force Base in Delaware

It took place across two floors of a classroom building and ended when a sheriff's deputy killed the gunman - named by the FBI as 21-year-old Mohammed Alshamrani.

Eight people were also injured in the shooting, including two officers, who are expected to recover.

The FBI said Alshamrani bought his weapon - a 9mm handgun - legally in the US.