Kern County officials said a 21-year-old man is dead after accidentally shooting himself in the head while rolling a marijuana joint.

The Kern County coroner ruled the shooting death of 21-year-old Victor Manuel Hidalgo III last month on Kenny Street was accidental.

The Kern County Sheriff’s Office said the shooting happened on Dec. 14, 2018 in the 4200 block of Kenny Street at around 9:40 p.m.

The sheriff’s office told 17 News their investigation found Hidalgo was with a friend in a car, rolling a marijuana joint when his friend told him to put away a gun.

According to a sheriff’s office spokesperson, Hidaldo said there were no bullets in the gun, put it at his head and pulled the trigger.

Deputies found Hidalgo with severe injuries and was taken to Kern Medical where he died two days later.

The coroner’s office announced its findings on Jan. 2.