Chuck Hubbard, a retired journalist, defeated Representative Virginia Foxx in a conservative district.