NASA's James Webb Space Telescope captured a glimpse of the asteroid that had a chance of impacting Earth three months ago.