(n)marshal, marshalla law officer having duties similar to those of a sheriff in carrying out the judgments of a court of law