An opposition politician was killed in the heart of Nairobi on Wednesday, according to the police.