A gunman who opened fire on the steps of a New York City cathedral on Sunday moments after an outdoor Christmas concert ended was shot and killed by responding police officers, authorities said, CNN reported.

A choir that had just finished Christmas caroling at the Cathedral of St. John the Divine was lingering atop the cathedral steps when the suspect, who had two handguns, approached the church doors and opened fire into the air, police said.

Two NYPD officers and a sergeant, who were present at the scene, opened fire, striking the gunman in the head, a police source said. NYPD Police Commissioner Dermot Shea hailed the officers as heroes during a press conference Sunday.

The suspect was yelling "kill me," according to multiple witnesses on the scene, Shea said. He said a motive for the shooting is not yet clear.

The gunman—a man in his 50s—was pronounced dead at hospital late Sunday afternoon, a law enforcement source told CNN.

"Thankfully, none of the attendees were hit," Isadora Wilkenfeld, a spokesperson for the Cathedral of St. John the Divine, said in a statement.

Two semi-automatic firearms were retrieved from the scene, along with a bag believed to belong to the suspect containing a full can of gasoline, wire, rope, multiple knives and a bible, Shea said.

The NYPD will continue to review body camera footage and the incident is under investigation, Shea said.