Video surveillance shows that a fight broke out before a double shooting in York over the weekend, and the man charged with firing the shots allegedly told police he did it in self-defense, according to court documents.

Jose Antonio Rivera-Sabo, 28, of the 800 block of West Princess Street, has been charged with two counts of aggravated assault and recklessly endangering another person.

Krystal Rodriguez, 31, suffered three wounds — two in her left leg and one in her right leg, during the double shooting on Sunday evening in the first block of North Belvidere Avenue, according to a York City Police news release. One just missed her main artery.

Francisco Rodriguez, 32, the second victim, was struck in the right leg.

Rivera-Sabo turned himself into police shortly after the shooting and allegedly admitted to firing the shots, saying he feared that he and his girlfriend were going to be hurt, the affidavit states. He claimed self-defense.

Detectives interviewed Rivera-Sabo's girlfriend, who told police that she was driving her car on North Belvidere Avenue when some people crossed the street in front of her vehicle. She had to slam on the brakes and beep the horn to avoid hitting them, the affidavit states.

The girlfriend, who was not named in the affidavit, said the pedestrians yelled at her, saying she almost hit them with her car. She told police that a man, who was later shot, kicked the side of her vehicle.

More:Woman pleads guilty in crash that killed a mom and daughter in York County

More:911 dispatcher helps resuscitate toddler who fell into a pool on Christmas

More:Hardship and hope: The top crime and emergency stories of 2018 in York County

She got out of her car and started to argue with him, asking why he kicked her vehicle. Another woman joined in the argument, and a fight broke out, the affidavit states.

That's when the girlfriend heard a gunshot, and she saw the woman on the ground with wounds to her leg, dragging herself away.

Rivera-Sabo told his girlfriend to get back in the car, and they left. She asked him if he fired a gun, and he allegedly responded "yes," the affidavit states. He told her to call 911 and to take him to the police station to turn himself in.

Police reviewed video surveillance from the area and saw the victims crossing the street. A short time later, a blue Hyundai came into view. The vehicle stopped in the middle of the street. Both the driver and the defendant got out. Another person approached the driver, and a fight broke out, according to detectives.

"The passenger/defendant is seen going back into the passenger side of the vehicle and then comes back out and begins to fire at the people on the street," the affidavit states.

At the scene, police found three spent 9 mm casings and one spent bullet on the road.

Rivera-Sabo allegedly told police that he fired the shots toward the ground, the affidavit states. Detectives asked the suspect what the victims did that caused him to be in fear.

"He could not give us an example," police wrote in the affidavit.

Police also said Rivera-Sabo could not give them "a clear defense." They told Rivera-Sabo that the shooting was caught on video and "doesn't show any type of self-defense."

Rivera-Sabo allegedly told police that he had just got his gun permit a few months ago, and he was not told what he could or couldn't do with the gun, the affidavit states.

When he was told he was going to be arrested, Rivera-Sabo allegedly refused to continue the interview and wanted a lawyer, the affidavit states.

He was committed to York County Prison in lieu of $150,000 bail, according to court documents. A preliminary hearing is scheduled for Jan. 15.