Optical spectra and semi-empirical model of a white-light flare