Rep. Lee Terry (R-Neb.) has won his primary despite a close call, according to the Associated Press.

Terry led under-funded primary challenger Dan Frei 54-46 for much of Tuesday night before AP called the race in Terry's favor. The race was called with just more than half of precincts reporting.

Frei, a businessman, raised less than $50,000 for his primary challenge, becoming the latest challenger to give Terry an unexpected scare in his Omaha-based district.

Terry attacked Frei late in the campaign for his stance on health care for illegal immigrants.

Democrats are running state Sen. Brad Ashford against Terry in the general election. The race is rated as "likely Republican" by the Cook Political Report.