Do you think this holds up in court? It gives me Nuremberg defense vibes ("I was just following orders"), except humans are following an AI's orders.
You only need a Nuremberg Defense if you lose, and your country is taken over.
If you are an American soldier, only the US will be able to hold you accountable.
Israel has nukes and the backing of America. I think it is unlikely that they would ever lose so badly as their soldiers face a Nuremberg like trial.