A fire destroyed a dormitory at a maximum-security prison in the central Philippines, killing 10 inmates, officials said Friday.

The blaze Thursday was the second in two years to hit the Leyte Regional Prison in Leyte province, Bureau of Corrections spokesman Roberto Olaguer said.

Olaguer said the fire may have been caused by faulty wiring in the building that was built after the earlier fire in 2013.

"This was a maximum-security building and it was padlocked. So maybe when the fire happened suddenly, it may not have been unlocked immediately," Olaguer said, adding he had no other details and that a senior prison official from Manila was on the way to Leyte to investigate.

Philippine prisons are notoriously overcrowded and have poor facilities. The Bureau of Corrections says the prison has a capacity of 500 inmates but housed 1,895 before the fire, including 1,256 in the maximum-security building. On its website, the bureau said the prison's facilities were "often below par" compared to other prisons.

Olaguer said inmates displaced by the fire will be housed in a minimum-security compound.

The 42-year-old prison was also damaged in November 2013 by Typhoon Haiyan, one of the strongest storms on record to hit the Philippines, he said.