Houthi rebels and government forces have clashed for a fourth straight day in the Yemeni capital, residents said, despite the announcement of a UN-brokered agreement due to be signed later on Sunday.
Residents reported sounds of heavy shelling throughout Saturday night in an area of Sanaa near the headquarters of the first armoured division camp and close to the religious university of Iman.
UN special envoy Jamal Benomar, who had held talks with Houthi leader Abdulmalek al-Houthi in their home province of Saada, announced late on Saturday that an agreement had been reached to end fighting.
"This agreement shall be a national document that will advance the path of peaceful change, and will lay the foundations of a national partership and for security and stability," Benomar said in a statement.
Yemen's state TV headquarters in Sanaa had earlier been captured by the Shia rebels after coming under heavy shelling, while the country's Supreme Security Commission, chaired by President Abdrabuh Mansour Hadi, ordered a curfew in four areas north and west of the capital between 9pm and 6am.
Mohammed Abdel-Salam, a spokesman for the Houthis, said in a statement that his group took over the TV building after a battle with the guards.
More than 100 people have died in fighting since Thursday, sparked by weeks of protests and clashes. It also prompted the suspension of international flights to Sanaa and the interruption of broadcasts by state television.
Hakim al-Masmari, the editor-in-chief of the Yemen Post, told Al Jazeera that Saturday's clashes were the fiercest since fighting began on Thursday. He said that dozens of Houthi fighters were killed in Sanaa in the latest round of fighting.
Thousands of Houthis have staged protests in Sanaa for more than a month now, besieging ministries and blocking the road to the main airport.
The Houthis are a Zaidi Shia group whose traditional power base is in the north. They are demanding a new government and also more political power for their community.
The government's plans for a six-region federation has been rejected by the Houthis and the southern separatists.
ANALYSIS FROM OUR CORRESPONDENT
| Al Jazeera's Hashem Ahelbarra
The UN was trying to mediate a deal which included the Houthis demands of the formation a new government of technocrats, a reduction in fuel prices and giving Houthis more political representation. In exchange, the Houthis would have had to pull out of Sanaa and put an end to their civil disobedience campaign.
President Abdrabuh Mansour Hadi faces a tough choice: he is from the south and northern Yemen is not his power base. Most of the army’s top military commanders are Shias and he is worried they might defy his orders if he calls for war.
On the other hand, there is a growing frustration among the Sunnis. They say Hadi is weak, and that under his tenure more territory was lost to the Houthis. If the Shia rebels control Sanaa, Sunni tribes might call for his resignation.
And if fighting breaks out in Sanaa, a city divided along sectarian lines and armed to the teeth, it might be the worst on the Arabian Peninsula in modern history.
Explaining Yemen's political-military groups:
Houthis - Shia group also known as Ansarullah, or "Partisans of God", who have been at war with the government since 2004. They demand resignation of government, more political inclusion and access to the sea. Strongholds include Saada, al-Jawf and the Jeraf district inside Sanaa.
Al-Islah (Reform) - Sunni Islamist party that draws support and membership from heavily armed Sunni tribesmen, and is instrumental in rallying support behind the army and the government. Present in almost all of Yemen. The Houthis have identified the party as its arch-enemy.
Al-Qaeda in the Arabian Peninsula - A merger of the Yemeni and Saudi branches of al-Qaeda. Seized large swathes of territory in the south and the southeast after the uprising in 2011. Launched many attacks on armed forces and central authority establishments. Its power bases are Shabwah, Abyan and Hadramawt.
The Southern Separatist Movement - Umbrella group that wants the south to break away from the north and reinstate the former Socialist state that existed until 1990. Led by Ali al-Beidh.