The shooting happened about 3 p.m. at Ace China restaurant at the intersection of State Road 26 and East Wade Street.
According to neighboring Alachua County Sheriff's Office, a gunman walked up the the restaurant and fatally shot both deputies through the window.
Ramirez, a seven-year veteran of the Sheriff's Office, and Lindsey were dead when authorities arrived at the scene, Schultz said.
Sources told News4Jax that the gunman walked out to his Jeep and killed himself.
The shooter has not been named, but Schultz said he was "a lone assailant."