A dramatic shootout in Harlem, NY ended when a retired NYPD Lieutenant turned hedge fund driver sprang into action and opened fire on a robber who had started firing at two female officers responding to the scene.

Rudolph Wyatt, 23 and known by his street name “Booga,” was in the process of holding up a drug store and demanding money and the pain killers OxyContin and Percocet. At the time of the robbery, several customers were in the store, including a baby in a stroller. An alert manager hit the panic button, which summoned two female officers in a patrol car and a male officer on foot. When the cops arrived, they were able to coax one suspect (who has since escaped) out. That’s when Wyatt came out gun blazing. And that’s when retired Lt. Thomas Barnes took action.

Retired Cop Shoots Robber in New York City

Retired Cop Shoots Robber in New York City

Retired Cop Shoots Robber in New York City

Retired Cop Shoots Robber in New York City

Retired Cop Shoots Robber in New York City

Surveillance video captured it all:

The NY Post explains what happened:

Thomas Barnes, 48, was filling his tank at the BP station on East 119th Street and First Avenue at around 11 a.m. when he saw gunman Rudolph Wyatt running from the store, and sprang into action.

He crouched behind his hedge-fund boss’ Mercedes SUV and squeezed off three shots, killing Wyatt, 23.

The trigger-happy thug — wanted on warrants for two other shootings — lay dead in a pool of blood on the sidewalk wearing a black stocking mask with a wad of stolen cash spilling out of his pocket, witnesses said.

“Part of the back of his head was missing. He had a large head wound and there was tons of blood,” witness John Brecevich, 59, told the Post.

Wyatt was a member of the Bloods gang called “All About Money.” It just so happens Barnes, the retired cop, spent years working in the gang division in Brooklyn. Wyatt was wanted for shooting a 19-year-old in Georgia six times (non-fatal) and for another May 2010 shooting in NYC.

“I’m just happy to be home with my family,” Barnes said.