The MILF , which has been fighting a three-decade-old insurgency in the southern Philippines , has renounced terrorism and pledged to help hunt down foreign extremists .