Measurement of compound-nucleus lifetime by X-ray spectroscopy in the 106Cd(p, p')106Cd reaction