BAKERSFIELD (AP) — The Kern County Sheriff’s Office says a 45-year-old man was killed when an illegal firework detonated.

David Michael Adams of Bakersfield died late Friday at a hospital.

READ MORE: Wine Waste: The New Superfood?

Authorities say the man was lighting fireworks when the explosion occurred.

READ MORE: 'My Heart Rate Definitely Went Up': Sacramento Officers Use Virtual Reality To Train On Real World Encounters

The sheriff’s bomb squad is investigating.

MORE NEWS: Man In Custody Accused Of String Of Woodland ATM Robberies

Copyright 2019 The Associated Press.