Twin explosions outside two mosques killed at least 47 people, medical and security sources said, and wounded hundreds in apparently coordinated attacks in the northern Lebanese city of Tripoli on Friday.

The blasts, the biggest and deadliest in Tripoli since the end of Lebanon's 1975-90 civil war, struck as Friday prayers ended in the largely Sunni Muslim city. They came a week after a huge explosion killed at least 24 people in a stronghold in Beirut of the Shi'ite Muslim militant movement Hezbollah.

A recent resurgence of sectarian violence in Lebanon has been stoked by the war in adjacent Syria, where President Bashar Assad is fighting a largely Sunni-led rebellion and Hezbollah has sent fighters into combat on his side.

"I see seven bodies inside several burned cars," said a Reuters witness in Tripoli, speaking from the site of the first blast outside the Taqwa mosque that is frequented by hardline Sunni Islamists. At least 14 people were killed there.

The other deaths were reported from the second blast outside the al-Salam mosque. At least 358 people were wounded, Health Minister Ali Hassan Khalil told Reuters.

As of Saturday morning, 65 remained in critical condition, according to police.

Ambulances rushed to the scene of the Tripoli blasts and heavy black smoke covered the skyline of the Mediterranean coastal city.

Television footage showed a large crater outside the Salam mosque, and a large blast zone of crushed and burning cars. People ran through the streets, some of them carrying the bloodied bodies of the wounded.

Two corpses could be seen on the ground and apartment blocks had their windows and balconies smashed.

Afterward, angry gunmen took to the streets of Tripoli and fired in the air. Near the blast sites, angry men threw rocks at Lebanese soldiers examining the aftermath.

The southern suburb of Beirut dominated by Hezbollah has been hit by two car bombs in just over a month. Hezbollah leader Sayyed Hassan Nasrallah blamed radical Sunni Islamists.

Salem al-Rafei, chief cleric of the Taqwa mosque, is a staunch supporter of Syrian Sunni rebels as well as Lebanese Sunni militants who have joined the anti-Assad battle in Syria.

Al-Qaida blames Hezbollah

Al-Qaida's North African branch blamed Hezbollah for twin bombs that hit the northern city of Tripoli on Friday and threatened retribution, a U.S.-based intelligence monitoring website reported on Saturday.

Although Al-Qaida in the Islamic Maghreb, or AQIM, is not operational in Lebanon, its statement shows a growing regional hatred against Hezbollah by radical Sunni Muslim groups and a wider, deepening sectarian divide in the Middle East.

"That vile party... should know that it will meet retribution soon," AQIM said, according to the SITE monitoring service.

"We know with certainty that behind this deplorable act committed against are the hands of the vile, rafidah Hezbollah, which stands side by side with Bashar in Syria," the AQIM tweets said, as quoted by SITE.

Meanwhile, an Iranian Foreign Ministry spokesman accused extremists and Zionists of being responsible for the attacks, according the official Islamic Republic News Agency.

"Undoubtedly, the dirty hands of the Zionists have come out of the sleeve of irresponsible Takfiri [Islamic infidels] and radical groups who intend to sow seeds of sedition, damage national unity and peaceful co-existence of different Lebanese ethnic groups," Abbas Araqchi was quoted as saying.

Open gallery view People gather outside the Al-Taqwa Mosque the amid charred cars and wide damage, in the northern city of Tripoli, Lebanon, Friday, August 23, 2013. Credit: AP

Open gallery view Smoke rising above people gathering outside a mosque on the site of a powerful explosion in the northern Lebanese city of Tripoli on August 23, 2013. Credit: AFP