If it were possible for a gun to refuse to shoot an innocent person then it should do that.
It just so happens that LLMS aren't great at making perfectly good decisions right now, but that doesn't mean that if a tool were capable of making good decisions it shouldn't be allowed to.