Police say two plain-clothes detectives had just arrested a drug suspect Saturday night at Seneca and Gates Avenue in the Ridgewood section.
According to the NYPD, they were confronted by a 42-year old man who drew what appeared to be a black Glock 19 semi-automatic handgun from his waistband and pointed it at the officers, who fired a total of six rounds, striking him three times in the leg and torso.
The imitation Glock was actually a Walther CP99 compressed air pistol.
The man was pronounced dead later at Wyckoff Heights Medical Center.
No police officers were injured in the incident.
Investigators say the gunshot victim has an extensive criminal record with 39 prior arrests, including for drugs, robbery, criminal possession of a weapon, and assault.
Witnesses said the man with the imitation pistol had emerged from what appeared to be a black livery cab on Gates Avenue, which drove off as the man exited.
Police say the drug suspect told investigators that he recognized the man from the neighborhood, but did not know him personally.
Get Eyewitness News Delivered