The Israeli prime minister issued the demand to Hamas barely an hour before Sunday’s ceasefire was due to begin.