The first cross-border strike inside Afghanistan since March came after a spate of attacks by the Pakistani Taliban.