The Sheriff’s Office said three deputies responded to a criminal sexual assault call at the Red Roof Inn on Laurens Road near Interstate 85 in Greenville County just before 1 p.m.

Sheriff Steve Loftis said the woman who reported the alleged attack provided a description and deputies spotted Lamboy outside the motel and tried to arrest him.

Loftis said, "One deputy had the Taser out. The suspect was so violently resisting that he knocked the Taser out of the deputy's hand. About that time, the suspect grabbed the deputy's gun that was still in his holster."

The gun went off, hitting the deputy in the leg, according to the Sheriff’s Office.

Lamboy was then shot and killed.

“Had the other two deputies not returned fire, there's no telling how this could have ended because we feel certain that the suspect would have continued to pull the trigger," Loftis said.

One of the deputies had a tourniquet in his pocket and was able to help stop the wounded deputy's blood loss.

Loftis said, “According to the surgeon, (the tourniquet) saved the deputy's life because there was an extreme loss of blood."

The deputy has since undergone surgery and is expected to be released from the hospital in a couple of days.

Loftis said, "At a time like this, I'm extremely proud of every one of them because they've done such outstanding jobs."

Investigators said Lamboy who was killed had outstanding warrants again him.