Radiative feedback from an early X-ray background