Fire and rescue personnel managed to control the gas leak after battling for nearly three hours.