Former general to file formal challenge after supporters rioted, but observers say election was free and fair.