The investigation into the officer-involved shooting has shut down Atlantic Ave. in both directions with detectives crowding around at least six evidence markers in the eastbound lane. (Todd Maisel/New York Daily News)

Cops fatally shot a teenage gunman seen blasting away at an occupied Brooklyn lounge early Wednesday — the second deadly police-involved shooting within a six-hour span, authorities said.

A pair of NYPD plainclothes officers working a nightclub detail in Crown Heights confronted 18-year-old Joshua Martino after the teen fired at least four shots at the B-Hive Lounge on Atlantic Ave. near Grand Ave. at about 3:30 a.m., police said.

Advertisement

Martino bolted when he saw the cops, officials said.

A man was shot and killed along Atlantic Ave. near Grand Ave. early Wednesday. (Todd Maisel/New York Daily News)

"The suspect turned on the officers with his gun in hand and the two police officers discharged their weapons, striking the suspect in the torso," Chief of Patrol Terence Monahan said about the shooting.

Martino was struck at least once in the chest and rushed to Brooklyn Hospital, but could not be saved.

A third officer, a sergeant, also confronted the suspect, but did not open fire.

Martino's .38-caliber revolver was found at the crime scene, police said.

Cops took a 24-year-old woman into custody at the scene for questioning, officials said. It was not immediately disclosed if she was with Martino during his confrontation with police.

Cops shot an 18-year-old gunman outside of the B-Hive Lounge along Atlantic Ave. near Grand Ave. in Crown Heights early Wednesday. (Todd Maisel/New York Daily News)

Atlantic Ave. was shut down in both directions as detectives crowded around at least six evidence markers in the eastbound lane, witnesses said.

Someone opened fire outside the same late night club in February, wounding two men who went to the lounge after attending their slain friend's funeral.

Martino's death was the second police-involved shooting to take place in Brooklyn in under six hours, officials said.

Around 9:30 p.m. Tuesday, cops shot and killed 63-year-old John Owens after the unstable man brandished a knife during a confrontation inside his Canarsie apartment, police said.

Police were called to the first-floor apartment by Owens' sister when he began acting irrationally, officials said. When she let the cops inside, Owens ran into the kitchen and grabbed a 13-inch knife.