Pakistan, Russia agree to bolster military ties