'Need security pact to avoid Kashmir-like situation’