17 troops killed in bombing on Afghanistan-Pakistan border; Separate bombing kills dozens of civilians