Resonant photoemission and the mechanism of photon-stimulated ion desorption in a transition-metal oxide