Application of the time-shifting property in case of Fourier-Transform of cosine
Two things


Time shift equation is wrong. Should be $e^{-j \omega n_d}$. 
You need to express the cosine as a time shift $cos(\omega (n - \pi /2 /\omega))$ Time shift is not the same as phase shift and the  time shift is actually pi/2 divided by the frequency