A military official says the fighting erupted Monday when militants attacked a paramilitary convoy in the Mohmand tribal district .