The airstrikes came hours after Afghan troops had attacked Pakistani border positions and follows months of worsening relations between the neighboring countries.