\sqrt{-9}^2=\sqrt{-9}\cdot\sqrt{-9}=(\pm 3i)\cdot(\pm 3i)=\pm 9