By Ayman al-Warfalli and Suleiman al-Khalidi
BENGHAZI/TRIPOLI, Libya (Reuters) - A car bomb damaged a Libyan foreign ministry building in Benghazi on Wednesday, the first anniversary of the attack on the U.S. consulate in the country's second largest city.
Two years after the revolt that toppled Muammar Gaddafi, Libya is riven along regional and tribal lines and dogged by armed violence, leaving the central government struggling to curb the clout of rival militias and radical Islamists.
Local security officials said a car packed with explosives was left beside the ministry building where it detonated at dawn, badly damaging it and several other buildings in the center of Benghazi. There were no reports of casualties.
A few hours before the Benghazi explosion, security forces defused a large bomb placed near the foreign ministry headquarters in the eastern Zawyat al Dahmani district of the capital Tripoli, the government said.
"Libyans cannot ignore the timing of this explosion. It's a clear message by the forces of terror that they do not want the state or the army to stand on its feet," Prime Minister Ali Zeidan told reporters.
Zeidan did not directly blame any group for the attack, but alluded to Islamist militants blamed for a spate of recent car bombs targeting security and army officers.
Zeidan later said his government was accelerating a program to train 19,000 police officers and thousands of army recruits who would be sent for training inside and outside the country.
The government has allocated billions of dollars in its budget to bolster its armed forces but progress has been slow in integrating unruly militias in a unified force.
As well as militia violence, Zeidan's central government has also struggled to end strikes by oil workers and armed guards at oil installations that have paralyzed the North African state's crude production.
A year ago, four Americans including the U.S. ambassador to Libya were killed in an attack on the Benghazi consulate.
Washington initially said the assault had grown out of anti-Western protests. But it later turned out Islamist militants were the perpetrators, marking the 11th anniversary of al Qaeda's September 11 attacks on the United States.
Acting Interior Minister Al-Sadeeq Abdul Karim said the army and police were stepping up security measures to stem the deterioration of security in Benghazi and other parts of the vast country.
Benghazi has seen a spike in car bombings and assassinations of army and security officers, many of whom served in Gaddafi's security contingents and then joined successor formations after the 2011 civil war.
Seven have been killed since last week and at least 35 security personnel killed in the last few months, according to a Tripoli-based security source.
Analysts say rebels and militants seeking revenge against former security officers who served under Gaddafi, and frustrated with the limited progress in bringing his ex-henchmen to justice, have sought to take the law into their hands.
(Reporting by Ayman al-Warfalli in Benghazi and Suleiman al-Khalidi in Tripoli; editing by Patrick Markey and Andrew Roche)