Details of a chaotic night marked by tear gas and explosions have emerged from an Iranian prison following a deadly fire