Hamas on Sunday belatedly said it has agreed to a 24-hour humanitarian truce, shortly after Israel announced a resumption of hostilities in Gaza following a day-long pause.