It was not immediately clear what prompted the rush at Cuscatlán Stadium in the capital. President Nayib Bukele vowed to conduct a thorough investigation.
The officials were punished nearly a year after two dams above the seaside city of Derna failed in a storm, killing thousands and destroying much of the area.
Inmates at the overcrowded Makala prison had sought to escape their suffocating cells after water and power went out. At least 129 were killed, some two dozen of them shot dead, the government said.