Small asteroid on collision course with Earth discovered only hours before impact