United Nations Secretary-General Antonio Guterres said on Wednesday that attacks by militant group Hamas on Israel did not justify the "collective punishment" of Palestinians, and called for an immediate ceasefire.