A judge in a rural Kentucky county was shot and killed at the local courthouse on Thursday, Gov. Andy Beshear announced.