Residents relieved as firefighters contain blaze