Afghan soldiers, police and intelligence officials were among those killed in the latest violence.