U.N. chief commends both sides for Gaza ceasefire agreement