Effects of nonequilibrium quasiparticles in a thin-film superconducting microwave resonator under optical illumination