A deputy in Florida was grazed by a bullet Wednesday during a gunfight with a suspect who fled after being suspected of shoplifting cigarettes and then took part in an hours-long standoff before he was taken into custody, authorities said.

The deputy who was shot at had non-life-threatening injuries, the Volusia County Sheriff’s Office said in a news release on social media.

FLORIDA MAN KILLED AFTER PUTTING CHILD HE THOUGHT WAS ‘POSSESSED’ INTO FIRE, STRIKING DEPUTY WITH ROD: SHERIFF

The suspect was taken into custody Wednesday morning following about a four-hour standoff during which he set fire to his house in Deltona, Florida, located about 30 miles northeast of Orlando, authorities said.

FL crime scene tape

An Orlando-area man set fire to his house Wednesday during an hours-long standoff with police. (FOX News)

A worker at a convenience store called deputies after witnessing the suspect stealing cigarettes. The suspect drove at deputies arriving at the store and then attempted to flee but was hindered by stop sticks a deputy had deployed. The suspect was able to drive to his home on a deflated tire, followed by deputies who commanded him to get out of his truck. When deputies approached the vehicle in an attempt to remove him, the suspect fired at them, the Volusia County Sheriff's Office said.

The suspect set fire to the cab of the truck and was forced into his home, where a short time later, deputies saw smoke and flames coming from the upper floor. When the suspect was spotted on a balcony, deputies used an armored vehicle to knock down the balcony and bring the suspect to the ground, the news release said.

CLICK HERE TO GET THE FOX NEWS APP

The suspect was treated at the scene for unspecified injuries and then taken to a hospital, authorities said.