Dozens dead in clash with Libyan militiamen in Tripoli

* Libya struggling to curb clout of regional militias

* Clashes still common two years after Gaddafi's fall

* Oil exports blocked by widespread armed disorder (Ads colour, context, details)

By Ghaith Shennib and Ulf Laessing

TRIPOLI, Nov 15 (Reuters) - At least 32 people were killed and almost 400 wounded in gun battles between Libyan militiamen and armed residents in Tripoli on Friday in some of the worst street fighting in the capital since the overthrow of Muammar Gaddafi.

Prime Minister Ali Zeidan is struggling to control rival militias, Islamist militants and other former fighters who refuse to surrender their arms two years after helping to oust Gaddafi in a NATO-backed revolt.

After Friday's violence, Zeidan demanded that all militias "without exception" leave Tripoli, but the clashes underscored how little his fledging military can do to curb ex-rebels, who have also shut down Libya's oil exports for months.

Friday's bloodshed began when militiamen from the city of Misrata fired at about 500 protesters demanding their eviction from the capital after they had fought rivals for control of city districts.

A Reuters reporter saw an anti-aircraft cannon firing from the "Gharghur brigades'" gated compound into the crowd as protesters chanted: "We don't want armed militias!"

Demonstrators, some of which had been carrying white flags, fled but then returned, heavily armed, to attack the compound, where the militiamen remained holed up until early morning as fighting continued. Rocket-propelled grenades could be heard.

Dozens of soldiers in trucks tried to separate the sides, and sealed off roads to stop more people joining the clashes.

Heavy smoke could be seen rising from the scene in the Gharghur district, where many of Gaddafi's closest collaborators used to live before the uprising.

At least 32 people were killed and 391 wounded, a Health Ministry official said. A Reuters reporter saw the dead body of a girl, aged around 12, whose head had been almost blown off.

Zeidan denounced the killing of protesters. "The demonstration was peaceful and had been permitted by the Interior Ministry, and then the protesters were fired on when they entered the Gharghur district," he said.

'ARMED GROUPS MUST LEAVE'

"The exit of armed groups from Tripoli is not something up for debate but necessary and urgently needed," he told Reuters TV and the Libya Ahrar channel in an interview. He did not elaborate.

Libya's turmoil and the weakness of its border controls are worrying its North African neighbours. France this week said it was considering offering more counter-terrorism training and aid to help Libya prevent militancy spilling over its frontiers.