Shirley choked up while apologizing, saying that while he'd done his best throughout his career, his use of excessive force on Haines was "probably the worst I ever did."
"I take full responsibility for what I've done," he said.
Shirley said all he knew was that the man had threatened bank tellers with a gun.
"I guess it's easy to look back now. Could I have stopped and turned around? Yes," he told the judge. "But that's not what people in law enforcement do."
Camilletti, however, argued that while the tellers did what they were trained to do to avoid violence, Shirley ignored his training. The video showed some officers administering the kind of blows they're trained to use, he said, but "no one was trained to stomp on his head."
Shirley was re-elected in November even as he faced the federal charges, but he resigned and pleaded guilty in January to deprivation of rights under the color of law. A second count of falsifying records was dismissed.
Friends testified that his re-election should demonstrate how valuable Jefferson County believes Shirley is, and former state trooper Steve Reckart -- now chief of police in Moorefield -- said he might not be alive today if it weren't for his longtime friend's courage.
Though Shirley is not large in stature, he said, he didn't run when people pulled weapons on the two of them.
"He was a banty, little rooster," Reckart said. "He'd stay right there with us. He always had my back."
Other friends said Shirley has been punished enough and offered to take him in under their supervision while he performed community service.
Camilletti argued probation would not show the seriousness of the crime or deter others.
Bailey agreed, saying that neither the stress of the job nor Shirley's personal problems justified his conduct.
Haines had to be presumed innocent at the time of the beating, Bailey said, and Shirley had a duty to uphold the law.
"The victim was still a member of the community he had a duty to protect and serve, and he did not do it," the judge said. "Not even sworn law enforcement officers are above the law."