A group of fire fighters have extinguished a fire that emerged from a building.