Resonant-frequency discharge in a multi-cell radio frequency cavity