Pakistan, Afghanistan will fight terrorism ‘together’: army chief