International law did not recognize revenge or punishment as justification for a military attack, but the customary laws of self-defense did sanction such strikes if they were designed to disrupt or preempt an enemy’s ability to carry out future attacks.