Radiative cooling of a spin ensemble