Kentucky sheriff shoots judge in his office