Authorities were searching on Saturday for the suspect in Washington state.
The man gave his name as Michael Thomas at the Grays Harbor county court on Friday.
He knocked Deputy Polly Davin to the floor and took her weapon. He then fired twice, hitting the deputy once in the shoulder.
The suspect then cut judge David Edwards in the neck. Both the judge and the police officer were treated at a hospital.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.