Firefighters rescue dog as home next door burns