CAIRO  Hundreds of thousands of protesters turned out in cities across the Middle East on Friday to protest the unaccountability of their leaders and express solidarity with the uprising in Libya that Col. Muammar el-Qaddafi is trying to suppress with force.

The worst violence of the day appeared to be in Libya, where security forces shot at protesters as they left Friday prayers to try to launch the first major anti-government demonstration in the capital. Demonstrations in recent days have been in other cities, and several of those have fallen to armed rebels determined to oust Colonel Qaddafi.

Protests in Iraq also took a violent turn, with security forces firing on crowds in Baghdad, Mosul, Ramadi and in Salahuddin Province, killing at least ten people. Unlike in other Middle Eastern countries, the protesters in Iraq are not seeking to topple their leaders, but are demanding better government services after years of war and deprivation.

Religious leaders and the prime minister had pleaded with people not to take to the streets, with Moktada al-Sadr saying the new government needed a chance to improve services and Prime Minister Nuri Kamal al-Maliki warning that insurgents could target the gatherings. But on Friday, the deaths came at the hands of government forces.