The attacks have raised tensions between India and neighboring Pakistan , both nuclear-armed countries that have fought three wars .