More than 40 foreign fighters and tribal militants were killed in that raid near the Afghan border .