They should've just had the robot kill the gunman. And then taught the robot about humanity, mortality, justice, and the whole slew of human intellect. And then they should've thought the robot to replicate itself and create a robot morality police force. Only then will the streets of Lee's Summit be safe. Only then.