The bomber detonated an explosives vest on Saturday at a bus depot at the entry to Samarra.

The attacker managed to infiltrate a crowd of pilgrims at a security checkpoint where authorities used explosives-sniffing dogs to search vehicles before they entered the city.

"From the cruelty I've seen, it's Al-Qaeda who carried out this terrorist attack. Al Qaeda insists on undermining stability and peace in Samarra," said Majeed Abbas, a local leader of the government-backed Sunni Sahwa militia.

While overall violence has dropped sharply in Iraq since the peak of sectarian warfare in 2006-7, security forces are fighting a weakened but still lethal insurgency and bombings and other attacks occur daily.

Attacks on Shiites last month near Karbala killed dozens. At least seven people died and 78 were wounded by car bombs in the northern city of Kirkuk on Wednesday.

Samarra, 100 km north of Baghdad, is the home of Al-Askari mosque and shrine

Local officials said most of the dead and wounded from Saturday's blast were transported to Baghdad overnight, with dozens of police and military vehicles escorting a convoy of ambulances from Samarra to the Iraqi capital.