Sudanese security forces fired tear gas early Tuesday at thousands of anti-government protesters who had been demonstrating outside army headquarters for a third straight night, but soldiers intervened firing in the air, witnesses said.
Thousands of protesters have massed at the Khartoum complex since Saturday, urging the military to back them in demanding the resignation of President Omar al-Bashir and the formation of a transitional government.
It is the largest rally since protests erupted over a hike in bread prices in December, before transforming into nationwide demonstrations against Bashir's 30-year rule.
Early on Tuesday, members of the National Intelligence and Security Service and riot police fired tear gas at the protesters in an abortive bid to disperse the sit-in, protest movement organisers said.
"There was heavy firing of tear gas after which army soldiers opened the gates of the compound for protesters to enter," a witness told AFP.
"A few minutes later a group of soldiers fired gunshots in the air to push back the security forces who were firing tear gas."
A second witness too said soldiers had intervened against the security force agents.
An AFP correspondent, some five kilometres (three miles) away from the headquarters, heard shooting for about four minutes. 
Since the protests erupted in December, the armed forces have remained on the sidelines even as security agents and riot police have cracked down.
Demonstrators have called on the army to protect them from the deadly crackdown, after days of camping outside its headquarters, which also houses Bashir's residence and the defence ministry.
Defence Minister General Awad Ibnouf vowed that the army would prevent any slide into chaos.
"Sudan's armed forces understand the reasons for the demonstrations and is not against the demands and aspirations of the citizens, but it will not allow the country to fall into chaos," Ibnouf said on Monday, according to the official SUNA news agency.
In a separate statement, army chief of staff Kamal Abdelmarouf said the military was "discharging its responsibility in securing and protecting citizens."
Officials say 38 people have died in protest-related violence since December.
Interior Minister Bushara Juma said seven protesters died and 15 were wounded on Saturday when forces tried to disperse them.
He said 42 security personnel were injured and 2,496 arrests made.
The umbrella group spearheading the protests appealed to the army on Monday for talks on forming a transitional government.
"We call on the Sudanese armed forces to talk directly with the Alliance for Freedom and Change for facilitating the peaceful process of forming a transitional government," said Omar el-Digeir, a senior member of the group.
Digeir said the protest organisers had formed a council to open talks aimed at agreeing a "transitional government that represents the wish of the revolution".
Reading from a statement, he also called on the armed forces "to withdraw their support for a regime that has lost its legitimacy" and to support the "people's alternative for a transition to a civilian democratic government".
The rally outside the army headquarters has been the largest since protests began on December 19 in the central town of Atbara, quickly spreading to the capital and nationwide.
The European Union said an "unprecedented" number of people had come out calling for change since Saturday.
"The people of Sudan have shown remarkable resilience in the face of extraordinary obstacles over many years," the EU's External Action Service said.
"Their trust must be won through concrete action by the government."
The protesters accuse Bashir's administration of economic mismanagement that has led to soaring food prices and chronic shortages of fuel and foreign currency.
After a meeting chaired by Bashir on Sunday, Sudan's security council said the demands of the protesters "have to be heard".
Bashir, wanted by the Hague-based International Criminal Court on charges of war crimes and genocide connected with the suppression of a now 16-year-old ethnic minority rebellion in the western region of Darfur, took power in an Islamist-backed coup in 1989.
He has remained defiant, introducing tough measures that have seen protesters, opposition leaders, activists and journalists arrested.
Related Story