Homeowners 'very lucky' fire contained