Kabul warns Pakistan of 'consequences' if it attacks inside Afghanistan