The fire engulfed much of the building’s upper floor.