Human-rights groups say more than 12,000 people were killed in antidrug operations between 2016 and 2022.