Male briefly escapes custody at Pincher Creek courthouse, tries unsuccessfully to grab Sheriff's gun