The election campaign in the nation of 3.7 million people, which borders Russia, was marked by a bitter fight for votes and allegations of a smear campaign.