They were able to avoid police checkpoints with help from a Turkish spy agency. This information was revealed in court by a former special operations officer. The Turkish army was also providing logistics and training. Trucks were also able to transport illegal arms to the Jihadists. A document was released citing more of the events that took place.

By ISAF Headquarters Public Affairs Office from Kabul, Afghanistan - 081209-N-8825R-011Uploaded by Alexandre Vallaury, CC BY 2.0, https://commons.wikimedia.org/w/index.php?curid=8705537