Nonlinear XUV signal generation probed by transient grating spectroscopy with attosecond pulses