Have you actually read the declaration by Pakistan you are pointing to?Wish common sense was not so uncommon
Here is the press release from International Court of Justice
http://www.icj-cij.org/docket/files/168/19420.pdf
More releases would follow on...
Your country has signed the "Declarations Recognizing the Jurisdiction of the Court as Compulsory"
Source: http://www.icj-cij.org/jurisdiction/?p1=5&p2=1&p3=3&code=PK
it mentions:
Provided that this Declaration shall not apply to:
e) all matters related to the national security of the Islamic Republic of Pakistan;