Thousands have died in violence over the disputed region , and India and Pakistan have fought two wars over it .