A dusk-to-dawn curfew has been declared in South Sudan following violence targeting people from neighbouring Sudan.