40 militants killed in Pakistan air strike: army