Two bombs ripped through an Islamic school Sunday, killing eight people and injuring 42 in the latest outbreak of violence gripping this southern port city.

The blasts detonated near a restaurant close to the school, where thousands of Sunni Muslims study, said Fayyaz Leghari, a senior Karachi police official. An unknown number of the victims were students. There was no assertion of responsibility.

A spokesman for the school, Ghulam Rabbani, said there were two explosions -- the first apparently intended to draw a crowd. "The first one was smaller. When people got to the site there was another explosion," he said.

Officials initially reported an explosion near a prominent seminary with a similar name, Jamia Islamia Binori Town, which had links with the Taliban in Afghanistan. They later said two blasts had occurred at Jamia Binoria, a different school near an industrial area in Karachi. More than 100 police officers and paramilitary troops blocked off streets in the blast area Sunday night.

Explosives experts defused another bomb hidden in a plastic shopping bag near the scene of Sunday night's blasts, Leghari said.

Pakistan's president, Gen. Pervez Musharraf, condemned the attack and expressed grief over the killings, state-run Pakistan Television reported.

He appealed for people to help keep peace in Karachi, a city in which revenge violence is common.

The explosion shattered windows at the restaurant and other nearby buildings. The burned wreckage of the motorcycle in which one of the bombs was planted lay with glass and other pieces of rubble strewn on the street.

"We were drinking tea in the restaurant when the first bomb exploded. We rushed outside" said Hayaullah Khan, 20, a student at the school, with tea spilled over his traditional white shalwar kameez outfit.

Karachi, Pakistan's main port city and commercial center, is believed to be a hideout for Islamic militants, some with suspected links to al Qaeda.

In recent months, the city has been the scene of bombings and attacks targeting Westerners and security forces, including an assassination attempt against a senior general in June.

The general survived, but 10 other people were killed.

Officials have said much of the violence in the city of more than 10 million is the work of people angered by Musharraf's decision to support the U.S.-led campaign against terrorism.

On Saturday, a bomb killed two people outside a car dealership in the part of Karachi where Pakistani police had arrested Ramzi Binalshibh, an al Qaeda operative, after a shootout in September 2002.