Recent cross-border clashes between Pakistan and Afghanistan mark a dangerous escalation in an already volatile relationship.