It was a tragic turning point.

On July 11, South Sudanese soldiers invaded a hotel in the capital city of Juba and gang-raped foreign aid workers.

"The soldiers just came to the bathroom where all the girls were hiding and they just picked us out of the bathroom one by one," says one of the women who was in the hotel. She asked that her name not be used.

Despite calls for help to the U.N. compound a mile down the road, no one came.

Even in a country where violence is commonplace, where a simmering civil war has been reignited, where the humanitarian needs are among the most pressing in the world, this attack sent shock waves through the aid community.

"Certainly something changed and things happened that we were not used to seeing happen," says Steve McCann, a security and risk assessment specialist. And now the repercussions are apparent: Some relief agencies have evacuated staff, and others have scaled back their operations.

The incident happened amid a whirlwind of fighting that erupted in Juba last month between government troops loyal to President Salva Kiir and soldiers aligned with former Vice President Reik Machar. Machar and his soldiers had recently come back from exile as part of a peace process to end a conflict that began in 2013.

But Machar's return quickly sparked open combat between armies split predominantly along ethnic lines.

When the fighting began on July 8 in the dusty dirt streets of Juba, foreign aid workers hunkered down in their compounds. The violence raged for four days and left more than 300 people dead, including refugees inside a United Nation compound and two Chinese peacekeepers. Thousands of people fled their homes.

On the southwestern edge of the capital, more than two dozen aid workers took shelter inside the grounds of the Terrain Hotel. The hotel, less than a mile from a large United Nations peacekeeping base, is popular with foreigners. During the fighting most of the foreign aid workers who sought shelter there were from the United States, Australia and the Philippines.

"There were intermittent highs and lows in the fighting," says the American woman who spoke to NPR. "There was a lot of military activity on the road outside of our compound. We were told [by our head office] that they were trying to evacuate us but there were too many checkpoints along the road. That it wasn't safe and that we just need to just sit there and wait."

On the fourth day of the fighting dozens of South Sudanese troops broke through the gate into the hotel grounds.

A group of about 30 foreign aid workers and a South Sudanese editor who was working for a USAID-funded project barricaded themselves in the second story of a block of apartments at the hotel. The block had been built as a "safe house" with metal gates on the balconies and steel reinforced doors.

For several hours the soldiers pillaged the hotel, ripping out appliances, ransacking rooms and even carting off the generator. The holed-up humanitarians frantically called the U.N., the U.S. Embassy and private security firms to send help.

But help did not arrive. At a U.N. base just up the road, armed peacekeepers with armored vehicles couldn't get authorization to leave their base and go to the hotel. The U.S. Embassy didn't have the resources to dispatch a rescue team. Private security companies also said the streets were too dangerous to reach the Terrain Hotel.

"The soldiers were trying to break down the door and then they started shooting through the door," says the American woman. One bullet hit a Vermont-based contractor in the leg.

Finally the door gave way.

Once they got in, the predominantly Dinka government soldiers shot and killed John Gatluak, a South Sudanese journalist. Gatluak, who was from the Nuer ethnic group, was working for Internews, a USAID-funded project to teach media skills to local journalists.

Then the soldiers grabbed the women who were hiding in the bathroom.

"The soldier that picked me, he walked me into another room," says the American. "The room that he walked me into, there was blood on the floor and there were panties on the floor. So I knew what he was going to do."

She collapsed on the floor in a fetal position, clutching her knees to her chest and refusing to move.

"He kept hitting me with an AK-47, yelling at me to open my legs," the American woman says. She says the soldier kept screaming at her, "'Open your legs. I'm going to kill you if you don't open your legs.'"

Eventually, she says, another soldier who appeared to be a commander ordered the soldier to stop. She says she was not raped. But at least five women were. One told the Associated Press that 15 men assaulted her for hours.

Hours after the attack on the hotel began, most of the aid workers were finally taken out of there by security forces aligned with the same government troops that had attacked them. Three of the Western women weren't rescued until the next morning.

McCann, the security specialist, says South Sudan has been a dangerous place for years. His company, Safer Edge, trains international relief groups in conflict zones around the world.

In the past McCann didn't expect that foreign aid workers in South Sudan would be directly and personally attacked.

"No," he says. "We didn't feel that international staff were the targets. No."

There are places in the world where international aid workers simply can't operate — parts of Syria, Libya, Yemen and Somalia, for instance. Before the Terrain Hotel attack, South Sudan wasn't one of those no-go zones. And McCann cautions that this incident won't cause all aid agencies to pull their foreigners out of the country. But the growing insecurity will force groups to reassess their operations and be far more cautious in South Sudan.

Julien Schopp with Interaction, an umbrella group for development and relief agencies based in Washington, says this incident was the culmination of two years of growing insecurity for aid workers in South Sudan.

"If you look at the latest aid worker security report, for the first time South Sudan is the most insecure location in the world, overtaking Afghanistan and Somalia, where we expect more violence," Schopp says.

Copyright 2016 NPR. To see more, visit http://www.npr.org/.