In the event the office of mayor or councilmember shall become vacant for any cause whatsoever, the mayor and council shall, within ten days after the occurrence of such vacancy, call a special election as provided by law to fill the balance of the unexpired term of office; provided, however, if a regular election for the office of mayor or councilmember is to be held within six months after such vacancy occurs, the mayor and the remaining members of the council shall by majority vote appoint a qualified person to the remainder of the unexpired term.