This is the future - maybe not everywhere, and probably not soon, but it is an eventuality. Also, AI will be treated like encryption - it will become a munition, with the same type of restrictions as munitions (https://en.wikipedia.org/wiki/Export_of_cryptography_from_th...). Governments will keep the best AI for themselves, leaving the goof-nuts ChatGPT type stuff for private citizens.
Then the question becomes did those gun downed humans deserve what they got? And did that massacre result in a greater good? Those are the not-so-pleasant questions the humans will have to ask themselves (probably using AI to help, ironically).