Im assuming the dude with the knife was attacking the female, which is why the cop started shooting. If that is true, then shooting him was initially justified to stop the threat.
That said, holy unnecessary mag dump! No excuse for him to continue firing after perp rolls away from victim. If...