A former ally of the president , Ralia Odinga , has said that Mr. Kibaki made the pledge in 2002 , during negotiations to form the alliance that won that year 's Kenyan elections .