A female suicide bomber walking among Shiite pilgrims in Baghdad detonated an explosives belt, killing at least 54 people and wounding more than 117.