Policeman shoots, injures magistrate in Kenya court