The coroner’s office has confirmed that the shooting death of a security guard at a strip mall in Lancaster was an accident.

Ulysses Escobar, 21, of Littlerock, was found suffering from a gunshot wound to the head in a vehicle parked at the strip mall around 7:05 p.m. Monday in the 1700 block of East Avenue J, said Deputy Kimberly Alexander of the Sheriff’s Information Bureau. He was pronounced dead at the scene by paramedics, she said.

Homicide detectives learned that Escobar and another security guard were sitting in the second security guard’s car when Escobar was shot, Alexander said.

“The death has been ruled an accident,” said coroner’s Assistant Chief Ed Winter. “He accidentally shot himself with his own weapon.”

The handgun was recovered at the scene, Alexander said.

Escobar was a security guard who worked for Lancaster-based Opsec Specialized Protection, an employee of the company told a news photographer at the scene.