Military says 32 fighters were killed in an operation in the northwestern Tirah valley close to Afghan border.