In scenes reminiscent of Lebanon’s devastating civil war, charred bodies lay in the streets Friday after twin car bombs exploded outside mosques packed with worshippers, killing dozens of people and wounding hundreds.

The co-ordinated attacks in this predominantly Sunni city – the deadliest fallout from Syria’s civil war to hit Lebanon – raised sectarian tensions to dangerous levels amid fears the country was slipping into a prolonged cycle of revenge.

There were reports that at least 42 people were killed in the blasts, the second such attack in just over a week. A deadly car bombing targeted an overwhelmingly Shia district south of Beirut controlled by the militant Hezbollah group on Aug. 15, demonstrating the alarming degree to which the country is being torn apart by the civil war next door.

Friday’s attacks shocked residents of Tripoli, which has been the scene of frequent clashes between supporters and opponents of President Bashar al-Assad in recent months. But the city, Lebanon’s second-largest, has not seen such bombings in decades.

The blasts were clearly intended to cause maximum civilian casualties, timed to go off at midday Friday outside the Taqwa and Salam mosques, which are known to be filled with worshippers at that time on the Muslim day of prayer.

“Lebanon has officially entered the regional war which has been raging in Syria and Iraq,” said Randa Slim, a scholar at the Washington-based Middle East Institute. “There are serious fears that the country has entered a vicious cycle of tit-for-tat explosions and car bombs. A dynamic of violence and reprisals, once set in, is hard to reverse,” she said.

Local TV stations aired shocking footage of the first moments following the explosions: Bodies scattered beside burning cars, charred victims trapped in smoking vehicles and bloodied casualties being ferried away by screaming residents.

In one video, apparently recorded by a closed-circuit television camera in the area, scores of terrified worshippers were seen spilling out of one of the mosques in a crushing stampede immediately after one of the explosions struck.

The two explosions went off about five minutes apart. The force of the blast at the Taqwa mosque propelled a car onto its roof.

President Michel Suleiman cut short a visit abroad and returned to the country to follow the situation. He described the attacks as a “massacre” aimed at sowing strife among Lebanese.

Hezbollah was quick to condemn the bombings and in a strongly worded statement, expressed “utmost solidarity” with the people of Tripoli.

However, residents of the city – long known as a hotbed for Sunni fundamentalists – were quick to point fingers at the Syria-backed group, blaming it for bringing destruction to Lebanon because of its open involvement in the Syrian civil war. In an ominous sign, a prominent Salafist sheik, Dai al-Islam Shahhal, said Sunnis in Tripoli would take security in their own hands, raising the spectre of armed vigilantes.

“Hassan Nasrallah was behind this,” a man shouted hysterically at the scene, blaming the Hezbollah leader.

The grand mufti, Lebanon’s top Sunni cleric, urged calm and unity in a televised address, but there was little of that to be seen in Tripoli Friday.

The open participation of the group on behalf of the embattled Assad regime has sent sectarian tensions soaring in Lebanon, a deeply divided country that never fully recovered from its own devastating civil war, which ended in 1990.

The bombings came the same day Israeli warplanes struck a target south of Beirut, hours after militants in south Lebanon fired four rockets into northern Israel. It was the first air raid on the area since the 2006 war between Israel and Hezbollah. The strike demonstrates the chaos and security challenges engulfing Lebanon, which has been without a functioning government since March, largely because of infighting between political factions.

Ms. Slim, the analyst, said a widespread civil war in Lebanon is still unlikely at this point, but predicted a further weakening of state institutions and a widening trust deficit between Lebanon’s communities.

“Until the Syrian conflict reaches its conclusion, instability and periodic violence will be the order of the day in Lebanon,” she said.

Caretaker Prime Minister Najib Mikati declared Saturday to be a national day of mourning for the dead.