Saad al-Hariri, who announced his resignation as Lebanon’s prime minister, said he would return to his country.