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