Firefighters are rescuing a residential building where fire engines are parked on the side of the road during a gas fire.