A Sacramento man was being arrested on domestic violence charges when a shooting ensued with sheriff's deputies on Tuesday night.

A woman called 911 just before 7:30 p.m. and said her ex-boyfriend was outside her South Sacramento home, according to the Sacramento County Sheriff's Department. She told deputies she had a domestic violence restraining order against him. Once deputies arrived at the home, near Livingston Way and 53rd Avenue, she said the suspect, 38-year-old Kenard Thomas, had fled the area on foot with a handgun in his waistband.

Deputies had dealt with Thomas in the past, and knew he frequented a vacant home in the 5200 block of 53rd Avenue. Once at the home, deputies began their search and announced they were there. Thomas was found hiding in a closet and, according to the department, he swiftly exited the closet towards the deputy.

Fearing for his safety, the deputy fired one shot and hit the suspect in the shoulder. Thomas was arrested and taken to a nearby hospital with a non-life threatening injury. He was released from the hospital Tuesday night after receiving medical treatment for his injury.

Thomas was arrested for corporal injury on a spouse/cohabitant, stalking, resisting arrest and violation of a domestic violence restraining order. The domestic violence charges stem from an incident which occurred with the same victim a few weeks prior.

Thomas was booked at the Sacramento County Main Jail, and is being held on $560,000 bail. He is scheduled to be arraigned on June 16, 2017.

The deputy involved in the shooting, a five year veteran of the sheriff’s department, will be placed on paid administrative leave pending the investigation.