Pakistan’s outgoing army chief issues warning to India