Dog scares off would-be intruder