I'm not sure there is much difference between this and a sharpshooter. They are both using deadly force to stop a deadly threat. Both involve a human being pulling a trigger.
Automated killing would be beyond the pale. Now THAT is the stuff of dystopian nightmares like Psycho Pass and Fahrenheit 451.
Sharpshooters can be hacked, we just don't call it hacking. We call it extortion, bribery, corruption, deception, hostage taking, and brainwashing. For instance, the practice of SWATting.