(CNN) A man was killed as a series of explosions and fires rocked nearly 40 homes and businesses in three Massachusetts towns on Thursday, according to the Essex County District Attorney's office.

Leonel Rondon, 18, was inside a car in Lawrence, Massachusetts, when a chimney fell on the vehicle, said Carrie Kimball-Monahan, a spokeswoman with the Essex County District Attorney's office said.

He was taken to Massachusetts General Hospital, where he later died.

Authorities said that an issue with gas service may have prompted several explosions in Lawrence, Andover and North Andover late Thursday afternoon, leaving at least 10 people injured.

The fires stretched across dozens of blocks, Massachusetts State Police said. Not all gas had been shut off by Thursday evening and some of the lines were overpressurized, officials said.

Read More