Dog saves family from fire