Firefighters unable to extinguish flames before building collapses