Taliban militants have stepped up attacks on Afghan and foreign troops in recent months .