Frequency response of an atomic resonance driven by weak free-electron-laser fluctuating pulses