Follow CBSMIAMI.COM: Facebook | Twitter

KISSIMMEE (AP) — A 28-year-old man is charged with shooting an Osceola County deputy who was breaking up a disturbance at a Kissimmee bar.

READ MORE: Arrest Affidavit: Accused Hollywood Cop Killer Jason Banegas Claims He Was Trying To Kill Himself In Struggle With Slain Officer Yandy Chirino

Deputy John Rios was shot in the leg during the disturbance early Sunday at the Sun on the Beach bar. He was treated and released at a hospital.

The sheriff’s office said Rios tried to detain Angel Manuel Lopez as he was leaving the bar and a struggle ensued. Lopez fired his gun during the incident.

READ MORE: Parkland Families Say They Want The Death Penalty

Other deputies detained him without firing their weapons.

Lopez is charged with eight offenses, including attempted murder of a law enforcement officer, aggravated assault on a law enforcement officer and possession of a firearm during the commission of a felony.

He is being held at the Osceola County jail. Online jail records do not say if he has a lawyer.

MORE NEWS: Push For State To Require Teaching Of Asian American History In Public Schools

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)