Follow CBSMIAMI.COM: Facebook | Twitter

COOPER CITY (CBSMiami) – Ring video shows a shadowy figure trying to get into a car in Cooper City then running off. Moments later that person may have tried again, choosing the wrong house.

He was confronted by a federal agent with Customs and border protection — and she was armed.

“I just woke up to some sounds,” said neighbor Laura Cook, “I didn’t know what a gunshot sounded like, it was just 3 quick pops and it thought I was dreaming it.”

It was no dream. BSO tells us the federal agent and suspect exchanged gunfire. “After 5am a woman was exiting her home when she encountered a car burglar, she interrupted a car burglary,” explained BSO Spokeswoman Joy Oglesby. “There was a brief foot chase and the suspect turned and shot at her, she returned fire.”

Deputies took someone into custody.

At one point they walked a handcuffed and shackled man through the crime scene.

BSO will not say if the person they walked through the scene was the person they arrested. But seconds after he walked by – deputies were on the ground looking for evidence.

They spent much of the day searching, possibly for gun casings.

Another neighbor said someone got into his truck. Pointing to his open locked seat compartment, Efren Companioni said, “I could never open it because it was locked, broken, and now I come to look and it’s open and the door is open and this is exposed,” he said. “This is my private stuff and it’s opened.

No one was injured in the exchange of gunfire.

Customs and Border Protection put out a statement confirming the agent used her service weapon.