The UN chief has made a fresh appeal for extension of the Gaza ceasefire agreement, warning against a "catastrophic" return to war, as the first phase of the truce expired on Saturday.