The three policemen were killed in two attacks in the capital , Nairobi , Friday .