When a vacancy occurs in the office of sheriff the chief deputy shall execute the office until the vacancy is filled.