It all depends on if 'robots', however one defines them are 'conscious', however one defines that.
But until that gets settled, it's always a human pulling the trigger.
No difference from when someone's pitbull chews off someone else's head.
It might be the owner's fault, it might be not. But the dog in question can not be blamed.
Same would be true of people, were they easily "fixed".
Killing is rational in a sense - for some subset of purposes, in context of some subset of environmental pressures, both of which change constantly, and often faster than adaptation to kill does.
Accept this. It will not ever change.
People are self-reproducing robots that are made of meat. Robots made of meat are very hard to fix.
[1] https://blog.msasafety.com/what-safety-integrity-level-means...
But as soon as AI / ML becomes involved, it stops being deterministic and becomes probability. "Judgement" is asked of the robot arm. Is that image a person or a car door.
I think this is likely to hit before cars simply because so many of us drive cars but none of us operate giant robot arms.