Afghan troops fight insurgents near Pakistan border, 18 killed