Secretary General Ban Ki-Moon has expressed outrage at the attack on the UN's relief agency, Unrwa, and said Israel had told him it was a grave mistake.