Suspect confesses in judge shooting case