HUNTS POINT, the Bronx (PIX11) — NYPD officers shot and killed a man who allegedly fired an airsoft pistol at a detective’s head in the Bronx Friday evening, officials said.

The man was killed near Hunts Point and Seneca avenues around 7 p.m., police said.

According to the preliminary NYPD investigation, the suspect was involved in a dispute with other people near Hunts Point and Seneca avenues. Plainclothes NYPD detectives were in the area for another investigation and overheard the dispute. The suspect allegedly stated that he was going to his vehicle to get a gun, Assistant Chief Philip Rivera said at a press conference following the shooting.

“The description of the male going for the gun was given to other detectives at the scene,” Rivera said. “The male was then seen exiting a black Ford pickup truck at the corner of Hunts Point and Seneca avenues with a gun in his hand.”

Rivera said the man walked onto a sidewalk and was approached by an NYPD detective who gave him a verbal command: “Police, don’t move!” That’s when the man allegedly raised his gun — which turned out to be an airsoft pistol — and fired one shot at the detective, just missing the detective’s head, according to Rivera.

Two officers returned fire at the man, hitting him five times in the torso. The man was pronounced dead at an area hospital. No officers were injured in the shooting.

Pictured is the airsoft pistol police recovered at the scene of the shooting, according to the NYPD.

This is the second police shooting that’s happened in the Bronx within the last three days.