From the international legal point of view, Israel is responding to an attack.