VIDEO: NYPD Detective Shot at Brooklyn Drug Bust by Apparent "Friendly Fire"

Two suspects are in custody and one is still on the loose after a "friendly fire" incident during a narcotics operation that resulted in a NYPD narcotics officer being shot in Bushwick Tuesday night.

The shooting happened around 6 p.m. in the area of Wilson Avenue near Troutman Street. Police say the officer was involved in a narcotics operation when shooting occurred.

Officials say the officer and detective approached the car on both sides after an alleged heroin sale had just occurred. When the officers identified themselves as police, the suspect's car backed up, striking the police vehicle.

The detective then reached into the car from the passenger's side to make an arrest. The driver then took off while the detective was partially in the vehicle. At this point, both officers at the scene fired their weapons.

A total of four shots were fired and the officer may have been hit by crossfire, WPIX TV reports.

The plainclothes detective was transported to Elmhurst Hospital in Queens with a gunshot wound to his shoulder, police say. His injuries are not considered to be life threatening. Officials say he is awake, alert and in stable condition.