The Andy Griffith Show/Citizen's Arrest
From The TV IV
Gomer makes a citizen's arrest of Barney for committing the same traffic violation that Barney just ticketed him for. This causes Barney to overreact, resigning as deputy and demanding a jail sentence in lieu of paying the fine. When Gomer finds out how far it has gone, he tries to come up with a solution.