One of the best books I've read explaining the rise and tenacity of Jihadist militia groups in the Middle East and Africa, is a book called Jihad and Co, by a Canadian researcher (with family ties to Pakistan) called Aisha Ahmad, who explains how fanatical Islamist movements emerge naturally from and thrive in conflict zone black markets.
It made me understand why the rise of the Taliban, Al-Qaeda and ISIS happened so quickly in ways I never could before.
I'd recommend mainly getting the Kindle edition as it's far cheaper than the paperback.
This fairly lengthy interview gives a good gist of her take.
Other recommends on the issues of the Middle East:
Paul Collier & Alexander Betts: "Refuge: Transforming a Broken Refugee System"
Mark Curtis: "Secret Affairs: Britain's Collusion with Radical Islam (second edition)"
Peter Neumann: "Radicalized: New Jihadists and the Threat to the West"