The Kenyan president’s state visit to Pretoria was aimed at deepening economic, political, and strategic ties.