NASA's asteroid chaser swings by Earth on way to space rock