Collective resonant Compton scattering by two-level particles