Trenton police officers shot and killed a 42-year-old man Thursday after responding to 911 calls about a person threatening to harm himself, authorities said

Jason Williams, of Trenton, was holding a gun and standing in the doorway of a residence on the 600 block of North Olden Avenue when four officers arrived to investigate the 911 calls received at 10:46 p.m., according to the state Office of the Attorney General.

During the encounter, two officers shot Williams, authorities said. He was taken to Capital Health Regional Medical Center, where he was pronounced dead.

The gun Williams was holding was later determined to be a BB gun, authorities said.

The Attorney General’s office is investigating the shooting because of new law enacted in January for all police-involved shootings.

Editor’s note: This post has been updated to correct Williams’ age. He was 42.

Taylor Tiamoyo Harris may be reached at tharris@njadvancemedia.com. 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.