BCSO: Armed man tries to take loaded gun into courthouse