When a vacancy occurs in the office of the governing authority, and the unexpired term of office exceeds six months in duration, it shall be the duty of the judge of the probate court of the county to call a special election to elect a successor and fill the vacancy in not less than 30 or more than 60 days. The election shall be held as provided by law, and the cost of the election shall be defrayed by the governing authority. If the unexpired term to be filled is less than six months in duration, the judge of the superior court of the county shall have the power to appoint a successor to fill the unexpired term. In any event, the successor shall be a resident of the district wherein the vacancy exists.