Bystanders detained Daniel Schmidt after he allegedly attacked the judge