(CNN) Two deputies were killed Thursday when a man walked up to them in a Florida restaurant while they were eating and opened fire, a Gilchrist County Sheriff's Office spokesman said.

Sgt. Noel Ramirez and Deputy Taylor Lindsey were eating at the Ace China restaurant in Trenton, a small town about 30 miles west of Gainesville.

Sgt. Noel Ramirez

The sheriff's office initially said the gunman shot the deputies through a window from outside the restaurant, but spokesman Scott Tummond clarified that account Friday, saying the gunman was actually inside when he opened fire.

Deputy Taylor Lindsey

"Both our heroes had simply sat down to eat while on duty," Gilchrist County Sheriff Bobby Schultz said Thursday night. "There was no crime in progress, no disturbance."

The deputies were in uniform and armed when they were shot, Tummond said, but they did not return fire.

Read More