BEAVER, Pa. (AP) — A judge has put a western Pennsylvania sheriff under house arrest and ordered him to give up 700 personal firearms for a bail violation.

Judge Francis J. Fornelli says Monday that Beaver County Sheriff George David has shown an inability to follow bond conditions. David will be given permission to leave home to attend church and medical appointments. Authorities say David violated some terms of his bond last month.

David was arrested in March 2013 on charges he threatened to cut a political campaign worker's hands off and shoot an online news reporter during incidents that allegedly began in November 2011. David has pleaded not guilty, and a trial is pending.

David remains in office because county officials are powerless to remove him and state legislators haven't tried to.