Tensions are escalating between Afghanistan and Pakistan, with both sides carrying out tit-for-tat attacks.