Israel did when it attacked Egypt, and what Jordan and Syria did in response was to come to the defence of a country (i.e. Egypt) that was itself under attacked attack. Article 51 of the UN Charter recognizes that as perfectly legitimate. The legal concept even has a name: casus foederis.
In Cameroon, suicide bombing toll rises to 19 dead, 143 wounded (Reuters)