The Israeli prime minister said his country retains the right to continue fighting if necessary.