HACKENSACK - Authorities say a man is in critical condition after he was wounded while trading gunfire with Hackensack police.

The Bergen County Prosecutor's Office says 22-year-old Robert Leonardis fired at a patrol car, narrowly missing an officer.

Police say the confrontation started when residents reported a gunman at the corner of Russell Place and Newman Street around 1 a.m. Monday. When officers confronted Leonardis, they say he ran and then opened fire. Two bullets went through the windshield of a patrol car where an officer was sitting.

Officials say two officers returned fire and two other officers joined the foot pursuit.

All four officers fired, striking Leonardis numerous times. He was taken to Hackensack University Medical Center, where he is in critical condition.

The officers were not hit by any bullets. Some were taken to the hospital to be treated for minor injuries.

Authorities say a .45-caliber handgun was recovered at the scene.

Police say Leonardis has a long criminal history including gang, robbery, and weapons charges. He was out on bail following an arrest for allegedly stabbing a man.