If a vacancy occurs in the office of marshal in any city of the second class, at the first regular meeting after the occurrence of the vacancy, the city council shall proceed to elect by a majority vote of all the council members a marshal to serve for the unexpired term.