Attack on security forces in NW, leaves 8 soldiers dead