FRESNO, Calif. AP – A man accused of killing his girlfriend was shot to death in a Stockton courtroom Wednesday after he attacked the judge presiding over his murder trial, officials said.

David Paradiso, 28, was shot by a police detective after he left the witness stand and began attacking San Joaquin County Superior Court Judge Cinda Fox during a break in proceedings, said Dave Konecny, a spokesman for the sheriff’s department.