Pakistan claims it was targeting militants near its border, but the Taliban government calls it an "atrocity".