Joe Arpaio, the 90-year-old former Arizona sheriff who was a once powerful figure in Republican politics but was ousted nearly six years ago amid frustration over his headline-grabbing tactics and legal troubles, was defeated Wednesday in a race for mayor of the affluent suburb where he has lived for more than two decades.