A man, later identified by police as Fernando Lopez, appears to get out of one of the cars and waves a handgun as people scatter. Lopez appears to fire into the air.



Michael Raines, the off-duty sheriff's deputy, is down the street and races toward the suspect with his own gun drawn, the video shows. Raines shoots Lopez, who then runs to the sidewalk in front of the bar, clutching himself.



Raines rushes toward Lopez and grabs him when a second man, identified by police as Mario Orta, walks toward them with a gun, according to the video. Raines crouches with Lopez, holding a gun to the suspect's head and using him as a shield, the video shows.



Raines keeps the wounded suspect in front of him and ducks when Orta points his gun at him, according to the video and police. Raines points his own gun at Orta, in a standoff, as the wounded man tries to push the deputy's arm away.



Orta eventually gets into a parked car, then jumps out and runs away, the video shows.



Shortly afterward -- about 4 minutes and 40 seconds into the video -- Chicago police squad cars arrive with their blue lights flashing. Raines remains on the ground, waving his gun in the air in an apparent attempt get the responding officers' attention.



Orta was arrested the next day on the West Side. While it's not clear in the video whether Orta fired his gun, authorities have said he shot at Raines during the confrontation.



Orta, 30, pleaded guilty Monday to aggravated discharge of a firearm and was sentenced to 10 years in prison by Cook County Judge Joseph Claps, court records show. Orta received credit for the 967 days he spent awaiting trial in the Cook County Jail.



Lopez, 29, is awaiting trial on charges of attempted murder, aggravated discharge of a firearm and aggravated assault of a peace officer. He is out on bail and due in court again next month.