The terms of the deal specify that Israel retains its "right to take all necessary measures in self-defence, at any time, ...