A suicide attacker walked into a crowded Iraqi cafe and detonated a bomb, killing 30 people and wounding 29, a police officer in the local command centre told AFP.