A ruptured pipeline in central Mexico exploded on Friday, burning many people who were trying to fill containers with fuel, the government of the central state of Hidalgo said.