Kenyan magistrate shot by policeman dies