At least 40 Daesh insurgents have been killed during an attack on security forces outposts in eastern Nangarhar province since Tuesday, local officials said.