UK minister backs Pakistan’s right to self-defence over cross-border attacks, urges dialogue with Afghanistan.