An asteroid space scientists feared would hit Earth may now smash into the Moon instead.