A New Jersey man in the planning stages of a robbery accidentally managed to call 911, at which point emergency respondents were able to listen in on his scheming.

Somerset County prosecutors say Branchburg police received the errant call on July 27, but were unsure of the caller's location. They learned that the phone number had recently been assigned to 42-year-old Scott Esser, of Elizabeth.

When Esser was then arrested for allegedly illegally entering a home in Stafford Township, he was also connected to burglaries in Berkeley Heights and Branchburg. The Branchburg incident occurred on July 27, the same day as his alleged 911 call.

It is unknown whether Esser, whose bail was set at $100,000, has an attorney.

More From Hot 975