Man's dog alerts him of house fire