TRIPOLI (AFP/Reuters) Fighting raged Monday near the compound of embattled Libyan leader Moamer Gaddafi and in other parts of Tripoli, witnesses said, a day after jubilant rebels overran the symbolic heart of the capital, hailing the end of Muammar Gaddafis 42 years in power. The 69-year-old leader, urging civilians to take up arms against rebel rats, said in an audio broadcast that he was in the city and would be with you until the end. But there was little sign of popular opposition to the rebel offensive, three of Gaddafis sons were seized and it was unclear where he was. The International Criminal Court (ICC) meanwhile is seeking the transfer of Seif al-Islam to The Hague to face charges of crimes against humanity, the courts spokesman said Monday. Libyan rebels captured Gaddafis third son Saadi, Al Arabiyah television reported on Monday, citing the head of the rebel National Transitional Council. Reuters correspondents saw rebel forces hunt sharpshooters from building to building. Sporadic gunfire and shelling kept civilians off the streets, waiting anxiously for the fighting to end after a brief outpouring of jubilation late on Sunday. Revolutionaries are positioned everywhere in Tripoli, said a senior rebel in the city, who used the name Abdulrahman. But Gaddafis forces have been trying to resist. There is gunfire everywhere, he added, saying government tanks were in action near Tripolis Mediterranean port and downtown near Gaddafis Bab al-Aziziya compound. Snipers are the main problem, he said. There is a big number of martyrs. World leaders were in no doubt that, after six months of an often meandering revolt backed by Nato air power, the disparate and often fractious rebel alliance was about to take control of the North African desert state and its extensive oil reserves. Some warned of a risk of a longer, anarchic civil war after what has been the bloodiest of the Arab Spring uprisings inspired by the overthrow of autocrats in Tunisia and Egypt. The fall of Gaddafi could also give new heart to embattled opposition groups across the Middle East, notably in Syria. Time has run out, said Franco Frattini, foreign minister of Libyas former colonial ruler Italy, adding that Gaddafis forces now controlled only 10 to 15 percent of the capital. Laila Jawad, 36, who works at a Tripoli nursery, told Reuters after the rebels arrived: We are about to be delivered from the tyrants rule. Its a new thing for me. I am very optimistic. Praise be to God. Libyas Jamahiriyah state television channel went off the air on Monday and a rebel spokesman said forces opposed to Gaddafi had taken control of state TV headquarters in Tripoli. The revolutionaries stormed the television building ... after killing the soldiers surrounding it. It is now under their control, the spokesman said. He was speaking after television screens airing the Jamahiriyah station went blank. In a coordinated move late on Saturday by rebel cells in the capital and assaults on several fronts, Tripoli saw some of the heaviest fighting of the war. A government official told Reuters 376 people on both sides were killed, and about 1,000 wounded, though it was unclear how the figures were arrived at. Civilians had flocked late on Sunday to Green Square, long the showpiece of the leaders personality cult, waving rebel flags. Some said they would rename it Martyrs Square. But early on Monday, rebel spokesman Nouri Echtiwi said, tanks and pick-up trucks mounted with machineguns had emerged from Gaddafis Bab al-Aziziya compound: They fired randomly in all directions whenever they heard gunfire, he said. US President Barack Obama and other Western leaders urged Gaddafi to accept defeat and prepared to work with the rebels - though the future leadership of Libya remains very unclear. The European Union, whose members had in recent years resolved disputes with Gaddafi in return for energy supplies, welcomed a new era: We are witnessing the last moments of the Gaddafi regime, EU foreign affairs chief Catherine Ashton said. She urged the rebels not to settle scores in blood and to respect human rights and move swiftly toward a new democracy. South Africa, a leading power on the continent to which Gaddafi devoted much of Libyas wealth and influence, denied it had sent a plane for Gaddafi or was planning to shelter a leader who has been indicted for crimes against humanity by the International Criminal Court in The Hague. Swedens Prime Minister Fredrik Reinfeldt said: We are watching history. But he cited the bloody epilogue to the overthrow of Saddam Hussein in Iraq and warned: There is a risk for actions of revenge, and uncontrollable violence. First signs emerged of moves to begin restoring oil production that has been the foundation of the Libyan economy. Technical staff of Italys oil and gas major Eni arrived to look into restarting facilities, Frattini said. In China and Russia, both powerful critics of the Nato war launched in March in support of the rebels, officials agreed that Libya appeared to have new masters. In Beijing, the foreign ministry said it would respect the peoples choice. Two of Gaddafis sons, including Saif al-Islam who was once seen as heir apparent and a potential friend of the West were captured by the rebels. But the whereabouts of Gaddafi himself, one of the worlds longest ruling leaders, were unknown. He had made two audio addresses over state television calling on Libyans to fight off the rebels. I am afraid if we dont act, they will burn Tripoli, he said. There will be no more water, food, electricity or freedom. But resistance to the rebels faded away. Near Green Square youths burned the green flags of the government and raised the rebel tricolour last used by the post-colonial monarchy which Gaddafi overthrew in a military coup in 1969. Many Tripoli residents received a text message from the rebel leadership saying: God is Great. We congratulate the Libyan people on the fall of Muammar Gaddafi. Gaddafi, a colorful and often brutal autocrat, said he was breaking out weapons stores to arm civilians. His spokesman, Moussa Ibrahim, predicted a violent reckoning by the rebels. A massacre will be committed inside Tripoli if one side wins now, because the rebels have come with such hatred, such vendetta, Ibrahim said on Sunday. Even if the leader leaves or steps down now, there will be a massacre. Obama, on vacation in the island of Marthas Vineyard, said in a statement: The surest way for the bloodshed to end is simple: Muammar Gaddafi and his regime need to recognise that their rule has come to an end. Gaddafi needs to acknowledge the reality that he no longer controls Libya. He needs to relinquish power once and for all. Nato said the transition of power must be peaceful and warned it would bomb any Gaddafi forces who kept on fighting. Libyas rebel government envoy to the Cairo-based Arab League said Monday that his country will not allow Nato bases in Libya after Gaddafis ouster, official MENA news agency said. Libya is an Arab and Islamic nation before Nato and after Nato, he said, adding, the Libyans revolted from the 1970s against Western bases and there will be no non-Libyan bases. The envoy, Abdel Moneim al-Huweini, added that the rebels were grateful to Nato because its airstrikes, which bolstered their rag tag forces, minimised the human toll. After civil war that became a stalemate in the desert for long periods, rebels raced into Tripoli, with a carefully orchestrated uprising launched on Saturday night to coincide with the advance of rebel troops on three fronts. Fighting broke out after the call to prayer from the mosques. Rebel National Transitional Council Coordinator Adel Dabbechi confirmed that Gaddafis younger son Saif al-Islam had been captured. Gaddafis eldest son Mohammed had surrendered to rebel forces, Dabbechi told Reuters. In a television interview, Mohammed said gunmen had surrounded his house. He told Al-Jazeera in a phone call that he and his family were unharmed. In Benghazi, thousands gathered in a central square. They waved red, black and green opposition and trampled on pictures of Gaddafi as news filtered through of rebel triumphs. There are still plenty of questions, said Anthony Skinner, Middle East analyst, at risk advisers Maplecroft. We know there have been some serious divisions between the rebel movement and we dont know yet if they will be able to form a cohesive front to run the country. Just last month, the rebels military commander was killed after being taken into custody by fighters from his own side. Hundreds of jubilant Libyans converged on their embassies and consulates in Europe and elsewhere to raise the rebel flag and tear down the symbols of Moamer Gaddafis 42-year rule. Some of the Libyan Arab Jamahiriyas diplomats announced they were defecting to the rebel administration while others deserted their representations. In one such instance, Libyan consulate staff in Athens allowed demonstrators into the building, offering no resistance as a few dozen sprayed graffiti on the walls and tore Gaddafi portraits. One was seen pulling out the plaque in front of the building while others were tearing up copies of the Green Book, the 1975 text in which Gaddafi laid out his philosophy and was compulsory reading for all Libyans. In the embassy in Ankara and consulate in Istanbul, Libyans hauled down the all green flag the worlds only completely monochrome flag meant by Gaddafi as a reference to Islam and a symbol of the state of the masses. In Istanbul, consul Abdulmecit Ali Said allowed 10 members of a group of around 40 demonstrators to replace it with the red, black and green flag of the National Transitional Council. At the embassy in Ankara, opposition groups also staged a protest, burning posters of a young Gadhafi giving the salute in his full military attire and trademark sunglasses. Others were trampling portraits they had yanked out of their gilded frames. In Malta, the Libyan community took to the streets in the middle of the night to celebrate the decisive rebel push on Tripoli, sounding their horns in front of the embassy and the islands only mosque. A group of around 200 protestors set fire to the green flag and hoisted the colours of the Western-backed interim administration, which dozens of states have already recognised as Libyas legitimate government. In Prague, it was Libyan diplomats themselves who burned the plain green flag, dramatically declaring their new allegiance to the rebels. Similar scenes were reported in a number of other capitals, including in the Arab world. In Syria, Libya diplomats announced in a statement they were siding with the transition. Syria itself is torn by a bloody uprising and Britain on Monday compared it with Libya, in a warning that President Bashar al-Assad could soon face the same fate as Gaddafi. The embassy in Rabat issued an almost identical statement while the ambassador in Tunisia, who was appointed after the uprising began, acknowledged the rebel victory and vowed to assist the return of refugees.