The UN says renewed war between Israel and Hamas is “catastrophic” and a “nightmare”.