A space rock soared by Earth closer than half the distance to the moon just hours after being spotted for the first time on Saturday.