When asteroid 99942 Apophis was first discovered in 2004, it caused concern because it could potentially collide with Earth.