Voters in several counties have ousted sheriffs who signed agreements to help President Donald Trump's immigration enforcement push, electing challengers who promised to curtail or end cooperation with U.S. Immigration and Customs Enforcement, the Associated Press reported Saturday.

The losses were only a smattering, but the AP said they could signal trouble for other sheriffs seen as participants in the crackdown and could hinder the cooperative pacts that have become a cornerstone of the administration's deportation effort.

In Alamance County, North Carolina, independent Shannon Long defeated Republican Sheriff Terry Johnson, who had held office for 24 years and was among the first sheriffs to let deputies enforce federal immigration law under a 287(g) agreement. Long, a pastor, business owner and former deputy, said trust with the county's growing Latino community was so fractured during the campaign that his sheriff-marked van made some residents reluctant to speak with him.

Long told the AP residents had been living in fear and felt they had no voice in their own community. He promised to curtail cooperation with ICE and to build new relationships, saying there is no need for residents to operate in fear. He will be the county's first Black sheriff, local media reported.

ICE continues to rely on the pacts to boost arrest numbers despite a one-time $75 billion infusion from Congress and the hiring of about 12,000 officers, the AP reported. The administration now has more than 2,700 such agreements with state and local agencies, up from 135 when Trump began his second term. The agreements have deputized more than 29,000 local officers and accounted for more than 6,600 arrests in July, about 15% of all ICE arrests, according to government data analyzed by the advocacy group fwd.us.

The AP reviewed about 250 sheriff elections held this month in offices with 287(g) agreements and identified races in Indiana, Maryland, North Carolina, Wisconsin and elsewhere where the ICE pacts played a role in an incumbent's defeat. Many sheriffs ran unopposed this year, but the issue could return in two years when sheriffs in Florida, Texas and other states with large numbers of agreements face voters.

Alamance County, a longtime Republican stronghold of just under 200,000 people between Greensboro and the Research Triangle, has grown more diverse, from 750 Hispanic residents in the 1990 census to nearly 25,000 in 2020. Johnson, first elected in 2002, has denied allegations of racial profiling, including in a Justice Department lawsuit more than a decade ago that ended in a settlement. He first suggested immigration might have contributed to his loss, then attributed it mainly to his long tenure and a brutal national environment for Republicans.

Activists and residents said Latino and, to some extent, Black residents feared engaging with the sheriff's office, worried about traffic stops and detention, and in some cases were afraid to call 911 or go to work. Supporters of Johnson defended his record on training and mental health services and questioned whether immigration decided the race.

In Frederick County, Maryland, longtime Republican Sheriff Chuck Jenkins lost to Democrat Karl Bickel, a retired Justice Department employee who pledged not to cooperate with ICE. Jenkins said the county had detained and turned over 1,884 people to ICE since 2008 before Maryland banned such pacts this year. He said the program made the community safer but acknowledged it likely cost him reelection.

In Winnebago County, Wisconsin, ICE's arrest of a schoolteacher weeks before Election Day fueled backlash against perceived alignment with immigration officers. Although the sheriff's department had nothing to do with the arrest, its 287(g) agreement became central to the campaign and helped Democrat Jason Rippl, who promised to end it.

Long said he will uphold the law and hold offenders accountable but will not participate in the 287(g) program. He has begun meeting with Latino community members to rebuild trust.