You're likely recalling The Execution of Private Slovik (1974), a televised drama starring Martin Sheen. While not about a "town bully," its plot centers on a group of soldiers who take justice into their own hands—echoing the vigilante dynamic you described.
Important caveat: The movie fictionalizes Slovik's story; the depicted vigilante execution is not historically documented. If this doesn't align with your memory, share more details—era, actors, specific scenes—and I'll refine the search.