Would-be burglar with 'bad intentions' calls 911 after homeowner pulls gun