Officials said 48 people lived in the building, which had businesses on the ground floors.