The poll was called after the country’s prime minister resigned to appear at a war crimes court.