At least 272 people have died in fighting between South Sudan's rival factions in the capital Juba, including 33 civilians, a government source said on Sunday.

The fighting broke out on Thursday and Friday between troops loyal to President Salva Kiir and soldiers who support vice president Riek Machar.

The violence has raised fears South Sudan could face more instability after emerging from a two-year civil war, which began in December 2013 after Kiir sacked Machar as vice president.

On Saturday Juba was calm, but on Sunday a witness said gunfire was heard in Gudele and Jebel suburbs of Juba, near the military barracks that hosts troops loyal to Machar.

"For about 30 to 40 minutes we heard sounds of heavy artillery in the direction of Jebel area," an aide worker based in Juba who did not want to be named said.

South Sudan's civil war was fought largely along ethnic lines with Kiir, a Dinka, and Machar, a Nuer, drawing support from their respective tribes.

A peace agreement last August ended the war but Kiir and Machar have yet to integrate their forces, a key part of the peace deal.

U.N. Secretary-General Ban Ki-moon said on Friday the latest violence highlighted a lack of commitment to the peace process and urged the country's leaders to end the fighting, discipline military leaders and work together to implement the peace deal.