A gunman armed with a rifle who shot one man dead and wounded three police officers Thursday afternoon in Irvington was fatally shot by police, officials said.

Police arrested the man, Kaizen Crossen, 39, of Irvington, less than ten minutes after the shooting, a short distance away on the 300 block of Myrtle Avenue and recovered a rifle, according to a release from the New Jersey Attorney General’s Office.

A bystander said his uncle’s best friend got shot in the neck, but the 20-year-old unarmed man fatally shot by Crossen was not identified by the Attorney General’s Office.

President Colligan - Irvington officers showed tremendous courage and bravery today when facing a gunman. The shooter wounded 3 officers and killed 1 civilian. The swift response in engaging the shooter prevented additional deaths. They are nothing short of HEROES. — New Jersey State PBA (@NJSPBA) August 9, 2019

He and Crossen were taken University Hospital in Newark were they were pronounced dead, authorities said.

Police were called to the area shortly after 11:30 a.m. for call of shots fired and man down and the shooter “engaged them with a rifle,” Irvington Mayor Tony Vauss told NJ Advance Media.

One was struck in the lower part of his legs and the others suffered non-life threatening gunshot wounds while exchanging shots with Crossen, authorities said.

All three were taken to University Hospital where they were in stable condition, officials said.

At the scene where an Irvington police officer was shot earlier today, witness says he heard so many shots and police yelling at people to get inside pic.twitter.com/qFFYdRqC46 — Karen Yi (@karen_yi) August 8, 2019

The shooter had a bulletproof vest, “lots of ammo” and another gun, the mayor said.

“I credit our police department for acting so swiftly,” Vauss said. “I think they were only a block away when they got called.”

Chris Sheldon may be reached at csheldon@njadvancemedia.com. Follow him on Twitter @chrisrsheldon Find NJ.com on Facebook.

Have a tip? Tell us. nj.com/tips

Get the latest updates right in your inbox. Subscribe to NJ.com’s newsletters.