The assault highlighted how Islamic militants appear to be gaining strength nearly eight years after the ouster of the Taliban , and the difficulties facing foreign and Afghan forces trying to defeat them .