Discovery of a quasi-periodic oscillation in the X-ray pulsar 1A 1118-615: correlated spectral and aperiodic variability