American International Group Inc. has agreed to sell its 21st Century Insurance Group personal automobile insurance unit to Zurich Financial Services Group’s Farmers Group Inc. subsidiary, the companies said Thursday.