Gunman killed after shooting four outside judge’s office at courthouse: Cops