Observe the difference.
Nigerians caught in drug-related offences in Ethiopia were arrested, prosecuted, convicted, and jailed according to Ethiopian law before being transferred back to Nigeria.
In South Africa, criminals were not separated from innocent people. Nigerians were killed, businesses were looted, and entire communities were targeted.
Same offence, different response. Ethiopia applied the law. South Africa often resorted to mob justice and collective punishment.