A nuclear weapon could potentially be sent into space to deflect an asteroid heading Earth's way, an astronomer has told Sky News.