A small US town has been rocked after a district court judge was shot and killed in his chambers. A sheriff and long-time colleague has been charged with his murder.