The Pakistani army has been fighting insurgents in the area but has been unable to defeat Taliban and al-Qaida linked groups .