Sri Lankan Prime Minister Ranil Wickremesinghe will resign from office on Thursday after his party’s candidate lost a presidential election over the weekend, his spokesman said.