Officials in Iraq say a car bomb has exploded outside a Shi'ite mosque northeast of Baghdad, killing at least 13 people.

Police say the blast Friday in the town of Balad Ruz targeted Iraqis as they were leaving a Shi'ite ceremony linked to the holy period of Ashura.

Earlier, gunmen opened fire on Shi'ites at a bakery in Baghdad, killing at least nine people.

The latest violence came as U.S. Defense Secretary Donald Rumsfeld made a surprise visit to the Iraqi capital and the northern city of Mosul to get an update on the training of Iraq's security forces.

Mr. Rumsfeld reminded troops in Mosul of the importance of training Iraq's security forces.  He said once the Iraqis prove they have the confidence and the capability to defeat the insurgency, coalition forces can, in his words, go home with honor.

Some information for this report provided by AFP, AP and Reuters.