© ReutersDemonstrators protesting against Syria's President Bashar al-Assad march through the streets in Homs September 30, 2011.
Syrian soldiers have taken control of most of the town of Rastan from deserters and gunmen, an activist said on Saturday, after the most prolonged armed clashes of the six-month uprising against President Bashar al-Assad.

Rami Abdel-Rahman, head of the British-based Syrian Observatory for Human Rights, said a force of 250 tanks was sent to the region on Friday and the army was deployed across 80 percent of Rastan.

Communication with the town of 40,000 people, 180 km (110 miles) north of Damascus, was difficult but Abdel-Rahman said a resident who managed to escape early on Saturday reported heavy gunfire throughout the night.

Syria says it is fighting terrorists there. The state news agency said on Friday seven soldiers and police were killed in the operation but had succeeded in inflicting "big losses on the armed terrorist groups."

The United Nations says 2,700 people have been killed in President Bashar al-Assad's crackdown since the mostly peaceful protests erupted in March, inspired by Arab revolts which have toppled three North African rulers and rattled leaders across the Middle East.

The United States and Europe have condemned the violence and imposed sanctions on Syrian oil exports, while regional powers have also criticized the repression.

The oil embargo, combined with a slump in tourism revenues and falls in foreign investment and trade, have pushed Damascus to take drastic steps to protect currency reserves.

Last week it barred most imports apart from basic goods and raw materials. It also has tried unsuccessfully to barter crude oil for badly needed fuel.

Army Inflicts "Heavy Losses"

Assad is a member of Syria's Alawite minority sect, an offshoot of Shi'ite Islam that dominates the army, security apparatus and power structure in the mostly Sunni Muslim country of 20 million at the heart of the Middle East.

He has blamed the violence on armed gangs backed by foreign forces, and his officials say 700 police and soldiers have been killed.

The state news agency said three members of a military engineering unit were killed on Friday as they tried to defuse an explosive device planted in Douma, north of Damascus, at a site where people were expected to gather after weekly prayers.

Three other devices were successfully dismantled in the south and east of the country, it said.

Assad retains control over most of the military and security forces but army deserters, many of whom are reported to have defected because they refused to shoot at protesters, have formed rebel units in areas around Rastan.

Residents say at least 1,000 deserters and armed villagers have been fighting loyalist forces, who are backed by tanks and helicopters. One activist said army defectors formed only a small part of the armed resistance. "There are at least 100 army defectors in Rastan and 600 gunmen," he said.

A high-ranking defector told Reuters on Friday that more than 10,000 soldiers have deserted the Syrian army and defectors are attacking security police who enforce loyalty to Assad.

Colonel Riad al-Asaad said that guerrilla-style attacks were concentrating on Military and Air Force Intelligence and the defectors were seeking to avoid confrontations with army conscripts.

The United States, which had been trying to re-engage with Assad and loosen the close alliance he had with Iran before the outbreak of the unrest, has condemned the crackdown on protests and pushed for United Nations sanctions on Damascus.

Relations hit a new low on Thursday when Assad supporters threw stones and tomatoes at U.S. ambassador Robert Ford's convoy as he visited an opposition figure in Damascus.

Ford and his party were uninjured but several embassy vehicles were damaged and Ford had to lock himself in an office to await help from Syrian security, U.S. officials said.

Assistant Secretary of State Jeffrey Feltman summoned Syrian Ambassador Imad Moustapha to the State Department on Friday and "read the riot act about this incident," State Department spokeswoman Victoria Nuland said

Syria, irked by Ford's meetings with opposition figures, accused Washington of inciting violence and meddling in its affairs. Washington demanded that Syria take steps to protect U.S. diplomats.