Yeh, unfortunately you can't just change AI ship rout without stopping it. But what you can do, is find which planet has the resources, then click on the square next to the planet (in sector view) and it will show you ships in AI control with that planet. From there u can cancel the AI rout.