Two Florida deputies have been killed after shots were fired through the window of a restaurant, authorities said.

Gilchrist County Sheriff Bobby Schultz said during a news conference that Sergeant Noel Ramirez and Deputy Taylor Lindsey were killed on Thursday afternoon in Trenton.

Mr Schultz said the deputies were getting food at the Ace China restaurant when the shooter walked up to the building and fired at them through a window.

Fellow deputies responding to the scene found the shooter dead outside the business.

Mr Schultz would not say how the suspect died, adding that state law enforcement officials were investigating.

Authorities said there was no apparent motive for the shooting.

Mr Schultz called the officers “the best of the best”.

The shooter’s name was not immediately released.

Trenton is in northern Florida, about 35 miles west of Gainesville.