This happened in Nigeria recently. It could have been Ghana or Kenya or South Africa or anywhere in Africa. (WARNING!!! IT'S REALLY, REALLY GORY!!!)
In my knowledge of African history, criminals and suspects may have been punished by flogging, burial-while-alive, banishment, capital punishment. BUT it happened after a trial; a trial by the elders or, indeed, a trial by ordeal before the gods and their priests. The punishment was cruel sometimes and the trials not credible in today’s conventional wisdom.
BUT THERE WERE TRIALS BEFORE PUNISHMENT!
We were cheated into colonialism, yes. We inherited some great legal norms, though, to add to valid virtues of our own. Joy!
So when (and why) did we learn to seize suspects, untried, to bludgeon-n-burn to death? Why are we more barbaric today than 500 years ago?