Barking dog alerts family to fire