A plainclothes NYPD detective shot an 20-year-old man in the stomach on Sunday after he tried to rob him at gunpoint, CBS News reports. The suspect was shot once in the stomach and is in stable condition. The detective was also hospitalized, with tinnitus.

Police said three detectives were in Bed-Stuy investigating an earlier robbery. Two of the detectives were wearing plain clothes, Pix11 reports, and one was wearing an NYPD reflective vest.

The chief of Brooklyn’s detectives, Patrick Conry, said that the three suspects were allegedly running a real estate scam, posting fake rentals on Craigslist and robbing prospective tenants. From CBS New York:

Earlier on Sunday, a woman went to look at an apartment that was supposedly for rent, but was robbed by three male teenagers instead, officials said. The woman called the cops, who then set up a meeting with the suspects themselves, according to law enforcement sources.

At that meeting, one of the suspects pulled what looked like a semi-automatic weapon on the three detectives, officials said.

(The wounded individual’s age has variously been reported as 16, 18, and 20 years old. Most news outlets have updated to 20.)

A police spokesperson said that a Daisy PowerLine 415 BB gun was recovered at the scene. One other suspect was arrested in addition to the young man who was shot, and the third is still at large.

Image via Pix11. Contact the author of this post: brendan.oconnor@gawker.com.