This depends on the laws in the specific state. It might be the State Attorney General, Secretary of State, the Treasurer, the Speaker of the State House of Representatives.
SECTION 7. VACANCIES IN OTHER ELECTIVE OFFICES If the Attorney General, Secretary of State, Comptroller or Treasurer fails to qualify or if his office becomes vacant, the Governor shall fill the...