The Commandment was certainly violated, but the prosecution of the war by the Allies did not because it was to protect innocent life.
The commandment does not say, “Thou shalt not kill except to protect innocent life.” How many innocent German civilians were killed?