A bomb has rocked the Iraqi capital of Baghdad, killing at least 10 people and leaving more than 35 others wounded.