The two countries have fought three wars and have yet to resolve their dispute over the region of Kashmir , where an anti-India insurgency has killed tens of thousands since 1989 .