Impurity effects on the spin excitation spectra in a d-wave superconductor