Peter Capstick wrote an article for American Hunter in the 1970s about dealing with a troop of baboons that had started causing big problems for villagers. It finally came to a head when the troop killed a woman and her child.
So, instead of sniping them with his .375 H&H as he had been doing, he and his trackers laid a trap around their nesting area. IIRC it involved a trench with burning oil and gasoline to move them in the direction he wanted, a bunch of flash bangs, and a Mac 10 submachine guns he bought from a former rebel.
He wiped out about a quarter of the troop, which induced it to find a new nesting area away from the villages they were harassing.