Eight militants killed in Afghanistan