Probing Dynamics of an Electron-Spin Ensemble via a Superconducting Resonator