"This incident could have ended very differently had the occupant not been alerted by the dog," fire officials said.