Thuringias ex-premier was helped into office by the far right but resigned a day later.