The Kenya election commission on Friday declared President Uhuru Kenyatta had won a second and final five-year term.