At least 24 civilians, including children, were killed in an attack by opposition forces in northwestern South Sudan.