NEW YORK (CBSNewYork) – It was a hero’s welcome on Tuesday for an officer from the NYPD’s 120th Precinct, who was discharged from the hospital after being shot while responding to a call on Staten Island over the weekend.

WATCH: 120th Precinct Commander Describes Officer Pali 

Officer Amir Pali was shot late Sunday night while responding to reports of a domestic dispute in the Shore Acres neighborhood.

Police said they encountered a man holding a 14-inch knife. The officers ordered him to drop the weapon, but he allegedly moved toward them.

“You can see the male attempting to get past who we believe is his wife and coming at the officers. You hear multiple times, ‘shoot me, shoot me, shoot me,’ during this encounter,” said NYPD Chief of Detectives Dermot Shea. “A Taser was deployed by at least one of the officers. We believe it struck the individual, but unfortunately did not cause him to cease his attack.”

Police said the officers were forced to open fire, shooting at least 10 shots.

The suspect, identified by sources as 50-year-old Faustino Dioso, was taken to the hospital, where he was pronounced dead.

“It serves as a reminder to all of us the dangerous work the members of the New York City Police Department do,” Deputy Inspector Isa Abbassi said.

Abbassi described Pali as “a tremendously energetic young man” who’s “really displayed what it takes to be a cop” in the NYPD.

Mayor Bill de Blasio visited the wounded officer in the hospital Monday.

Pali is expected to make a full recovery.