Islamabad accuses Afghanistan of failing to act against militant groups that carry out attacks in Pakistan, which the Taliban government denies. […] An Afghan official reported multiple civilians wounded near the Torkham border crossing, at a camp for people returning from Pakistan.
The groups in question are the Pakistani Taliban (TTP) and ISIS-K.



This other article has some details. Note there is more to it than just this excerpt, I might be leaving out key information unintentionally while trying to find a source
https://time.com/7381546/pakistan-afghanistan-taliban-war-strikes-attacks-border-clash-terrorism-explainer/