A man who twice lunged at officers with a knife — even after he was tased — was fatally shot by police in Kingsessing early Friday, authorities said.

The 51-year-old man's identity had not been released as of 5 p.m. Friday, pending family notification.

Around 2:15 a.m., police served a protection-from-abuse order against the man on the 1200 block of South 51st Street, according to a news release. The man left the house as a result of the order, police said.

But about 30 minutes later, the 28-year-old woman who filed the order called police back to the house after the man returned with a 10-inch knife and used a key to re-enter the residence, authorities said.

After verbally threatening responding officers, the man holed himself up in a second-floor bedroom and refused to leave, according to police.

Officers forced themselves into the room and ordered the man to drop the knife, but he lunged at them with it, police said. One officer deployed his Taser and the man fell onto a bed but was able to keep the knife in his hand, authorities said.

He then got back up and approached the officers again with the weapon, and one of them shot him in the torso, police said.

The man was taken to Penn Presbyterian Medical Center, where he was pronounced dead at 3:23 a.m.

The incident, which remained under investigation, was the third officer-involved shooting in Philadelphia this year, according to Police Department statistics.

In late March, a 28-year-old man died after he was shot by officers in Philadelphia — where he ran over an officer in Kingsessing — and in New Castle County, Del., where he fled following the initial incident and got into a struggle with another officer.

In February, a 22-year-old man was shot by police after pointing a gun at officers in West Oak Lane. He was wounded.

Last year, Philadelphia officers shot 14 people, five fatally.