India, EU vow to jointly fight 'foreign terrorists'