Follow CBSMIAMI.COM: Facebook | Twitter

PANAMA CITY BEACH (CBSMiami/AP) — The suspect in a lengthy standoff and shootout with police at an apartment in Panama City has been found dead, authorities said Tuesday afternoon.

Bay County Sheriff Tommy Ford says police officers used an armored vehicle to break into the apartment in Panama City and a robot then searched the residence, confirming the man in the standoff was dead.

The sheriff says the standoff lasted for hours as responding police exchanging gunfire with an assailant shooting from an elevated position with a rifle. Ford says several officers were pinned down by the gunfire for long periods of time.

Several law enforcement agents had surrounded the apartment building and exchanged heavy gunfire with the suspect, and at least one person was injured.

Ford says: “We were just blessed that we didn’t lose multiple officers and citizens today.”

He says numerous rounds of gunfire were directed at law enforcement agents.

A sheriff’s spokeswoman in the Florida Panhandle says a suspect identified as Kevin Robert Holroyd is barricaded inside a Panama City apartment where he has exchanged gunfire with law enforcement officers.

Bay County Sheriff’s spokeswoman Ruth Corley says deputies tried Tuesday to knock down the door to the apartment, but that the suspect had holed up inside and there was heavy gunfire.

Earlier, the Walton County sheriff’s department said on their official Twitter account that the standoff in Panama City was connected with the suspicious death earlier in the day of 30-year-old Clinton Street in Santa Rosa Beach. It did not elaborate. That community is about 40 miles (65 kilometers) west of Panama City along the north Florida coast.

Officials say law enforcement agents have surrounded the apartment building and exchanged heavy gunfire with the suspect Tuesday, and that at least one person was injured.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)