A car bomb ripped through a shopping district in central Baghdad on Thursday, killing 20 people and wounding 20 others, a police source said.