Military and intelligence sources have warned that al-Shabaab is bolstered by hundreds of foreign jihadists who bring with them insurgent methods that have proved effective in Afghanistan , Iraq , Pakistan and elsewhere .