Senior military officials from both sides attended the opening ceremony, according to Pakistan’s military media wing.