A San Marcos rape suspect who was arrested Sunday died Tuesday night after injuring himself in the Vista jail, sheriff’s officials said.

Jason Stey, 27, was arrested in a smoke shop on San Marcos Boulevard on suspicion of raping and beating an employee. She called 911 at 9:20 p.m. and a dispatcher could hear sounds of the assault, authorities said.

Stey was booked into the Vista Jail and put in a protective custody unit, sheriff’s homicide unit Lt. John Maryon said.

About 2 p.m. Tuesday, deputies found that Stey had attempted suicide. He was given medical aid and taken to a hospital. Maryon did not release the manner Stey used in the suicide attempt. Stey died at the hospital shortly after 10 p.m. Tuesday.

Maryon said an investigation into the incident is underway and an autopsy will be conducted.

Stey's death was the second jail suicide in recent weeks. Vidal Webb jumped from a second-floor walkway in the downtown Central Jail on Dec. 30 and died within 20 minutes, authorities said.

Webb, 41, was arrested on suspicion of setting his girlfriend on fire while she slept in her Poway home on Dec. 28. He doused her with a flammable liquid, then ignited it, sheriff's officials said.

The victim remains in a medically induced coma undergoing treatment for major burns over most of her body.