Nursultan A. Nazarbayev, who has governed the country since the Soviet Union collapsed, secured his fifth term with 97.7 percent of the vote.