(CNN) -- Kenyan Prime Minister Raila Odinga, who narrowly lost the election, said he will go to court to contest the results naming his deputy, Uhuru kenyatta, as the president-elect.