KAYA, South Sudan (Reuters) - Before the South Sudanese rebels attacked the town of Kaya, they handed out supplies - a ragged strip of red cloth to identify themselves to each other as friendly forces, a packet of biscuits, and two precious magazines of ammunition per fighter.

SPLA-IO (SPLA-In Opposition) rebels fire weapons during an assault on government SPLA (Sudan People's Liberation Army) soldiers in the town of Kaya, on the border with Uganda, South Sudan, August 26, 2017. REUTERS/Goran Tomasevic

But government forces counter-attacked, killing several rebels and an American journalist. The rebels ran out of ammunition after 40 minutes and had to retreat back to their base in the bush. reut.rs/2wpOdRf

“We lack funds and support. The guns we have, the ammunition we have, we take from the enemy,” General Matata Frank Elikana, the rebel governor for Yei River State, told Reuters during the long march through rain-soaked elephant grass to the front line.

Oil-rich South Sudan became the world’s youngest nation when it won independence from neighboring Sudan in 2011 following decades of conflict. But civil war quickly followed in 2013 after President Salva Kiir, an ethnic Dinka, fired his deputy Riek Machar, a Nuer.

Since then the conflict has been punctuated by gruesome massacres of civilians and extreme sexual violence. Ethnic militias have divided the country into a patchwork of fiefdoms.

“With Salva Kiir in power there will be no peace. He has to leave,” said rebel Colonel James Khor Chuol Lengdit.

The violence has paralyzed oil production, fueled hyperinflation and plunged parts of the country into famine briefly earlier this year. Nearly a third of South Sudan’s 12 million citizens have fled their homes, creating Africa’s biggest refugee crisis since the Rwandan genocide.

Before the rebels attacked Kaya, a town near the Ugandan border and one of four that were simultaneously attacked on Aug. 26, the fighters prayed together and told jokes.

Then they tied their red strips of cloth around their heads and ran forwards, firing, to positions near cement walls or corrugated iron market stalls.

Slideshow ( 27 images )

The town was eerily empty; there were no civilians to be seen. Shops, a market and the school echoed with the sound of gunfire and explosions.

“In government-controlled areas there are no civilians. They don’t feel safe as soldiers abuse them,” said Colonel Lam Paul Gabriel, the deputy military spokesman for the rebels, just before the attack. “They kill civilians. They rape women. They do a lot of atrocities in the area.”

Government and military spokesmen did not return calls seeking comment. But the government has previously strongly denied such allegations.

“Government ... cannot do anything harmful to civilians,” presidential spokesman Ateny Wek Ateny told Reuters last week, denying that government forces had killed or abused civilians.

Verifying such incidents has become harder as the South Sudan government has clamped down on visas for international journalists.

Local reporters have been killed and imprisoned and on Saturday, 26-year-old American journalist Christopher Allen was shot dead as he reported on the fight in Kaya while embedded with the rebels.

Many international rights bodies, such as Human Rights Watch, Amnesty International and the United Nations, have documented possible war crimes by both government and rebel forces.

In the sprawling camps of northern Uganda Anet Kideng Tombek, 25 years old, said she had fled after government forces robbed her family and shot dead her husband.

“Government soldiers came to our home one morning. They took some of our goats. When my husband tried to stop them they killed him,” she said, cradling an eight-month-old baby.

“I had to walk for four days with my children to reach this camp. It was hard; I had to carry the younger ones all the way.”

The camps where Tombek lives are now home to more than 1 million South Sudanese refugees, and U.N. officials say the numbers are likely to increase as the rainy season draws to a close and serious fighting resumes.