A renegade Libyan general has launched a fresh offensiveagainst Islamist militants in the eastern city of Benghazi, sparking some of the worst fighting in weeks, with up to 12 people killed and power supplies disrupted.

Libyan authorities are struggling to restore order across the vast desert nation ahead of a June 25 parliamentary election. The situation remains especially chaotic in Benghazi, Libya's second-largest city and cradle of the NATO-backed uprising that toppled Muammar Gaddafi three years ago.

Retired General Khalifa Haftar has declared war against militants in Benghazi and several army units have joined him. The Tripoli government says he has no authority to act but its orders are routinely ignored in much of the country, especially in the east, as rival militias and tribal groups vie for control.

Haftar's troops, backed by tanks and rocket launchers, attacked several suspected camps of Islamists in western areas of Benghazi on Sunday, forcing dozens of families to flee. War planes could also be heard circling above the city.

Benghazi and much of eastern Libya suffered power outages after rockets hit a power station near the city's airport, the state electricity firm said.

At least five soldiers and three civilians were killed, among them two Sudanese, hospital workers told Reuters, adding that at least 18 people had been wounded.

Quoting medical sources, state news agency LANA put the number of killed at 12, adding that 16 had been wounded.

Haftar's spokesman, Mohamed El Hejazi, said his forces had detained five leaders from militant groups.

There has been speculation among analysts that Haftar has the support of neighbouring Egypt and of Gulf states such as the United Arab Emirates, which like the West are worried about Islamist militants exploiting the chaos in Libya.

Haftar told Saudi-owned Arabiya television that his forces were being supported by Libya's neighbours to help secure the country's borders, according to the channel's website. He did not elaborate and he later issued a denial of any such support.

HAFTAR SLAMS QATAR, LAUDS EGYPT

At a news conference held outside Benghazi, Haftar praised Egypt's new president, Abdel Fattah al-Sisi, as the right man for the job. Egypt has cracked down hard on the Islamist Muslim Brotherhood, which Haftar on Sunday branded as an "international spy network".

Haftar also accused Qatar of fuelling Libya's chaos. "There is no doubt Qatar supports the militias in Libya," he said.

Separately, he told Arabiya television Qatar was hampering the formation of a national army and police force in Libya.

Qatar has come under pressure from Gulf states such as Saudi Arabia, the UAE and Bahrain over its backing for the Muslim Brotherhood. All three withdrew their ambassadors to Doha in March, causing an unprecedented public rift in the Gulf.

The latest fighting in Libya comes less than two weeks before a parliamentary election that ordinary citizens hope will bring an end to the chronic political infighting that has paralysed decision-making since the last vote in summer 2012.

Western powers and Gulf countries fear that Islamists will turn Libya into a battlefield or transit point for fighters heading for conflict zones such as Egypt's Sinai, Syria or sub-Saharan countries like Mali.

The security fears are particularly acute for Benghazi, home to several oil firms and the focus of Haftar's campaign.

Haftar spokesman Mohamed El-Hejazi said Haftar had warned the Islamists against shipping in arms via the commercial port of Derna, east of Benghazi. Derna is a focal point for Ansar al-Sharia, a militant group designated as terrorist by the United States, and other insurgents.

Haftar was once close to Gaddafi but fell out with him and then played a role in the 2011 uprising. In February, he stirred rumours of a coup by appearing in army uniform to call for a presidential committee to be formed to govern until an election.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.