Two people, including a minor, were killed and nine others wounded by an explosion at an illegal fireworks factory in the central Mexican state of Puebla, emergency management officials said.

The explosion occurred on Tuesday at an illegal fireworks factory in the city of Xochitlan de Vicente Suarez, but the cause has not yet been determined, Puebla emergency management office director Jesus Morales said.

"Two males, one age 47 and the other barely 16, died" in the blast, which happened as they manufactured homemade rockets, Morales said.

The wounded were taken to the hospital in Zacapoaxtla, another city in Puebla, the emergency management official said.

Puebla emergency management office personnel and police from Xochitlan put out the fire and worked to prevent another blast, Morales said.

The fireworks factory, located near a sports complex, lacked permits from the Defense Secretariat and the Puebla government, state officials said.

Xochitlan de Vicente Suarez, which is in northern Puebla, has about 12,000 residents, the majority of them Indians.