The United Nations provided sobering details on Friday of an assault on a peacekeeping base in South Sudan that underscored the organization’s fragile ability to protect civilians in the country, where sectarian mayhem has escalated in recent days.