Disentangling thermal and nonthermal excited states in a charge-transfer insulator by time- and frequency-resolved pump-probe spectroscopy