The asteroid needs to be pushed with a nuke, or another method, while it's still in deep space, months or years before it would strike. It would be many times beyong the orbit of the moon, millions of kilometers.
ICBMs are for ground targets, their "reach" is a thousand kilometers or so, they have no navigation or tsrgeting for space.
Instead a spacecraft like Rosetta would to be equipped with a nuke and launched on a normal space rocket like Falcon 9 or Ariane or Soyuz. We only need to produce a couple of them in case of launch failure, we don't need thousands of them like we have ICBMs. The launch would not look anything like an ICBM launch, it does not come back to earth.