If anything, with the perp continuing to advance, the cop should have shot him in the leg.
It would have been a justified shooting.
Now the taxpayers get to support him for the rest of his life.