The officials say the bomb was hidden under a heap of trash and detonated as shoppers started arriving.
In the second attack, gunmen shot dead an Iraqi soldier in southern Baghdad after breaking into his house.
The police and hospital officials spoke on condition of anonymity because they were not authorized to speak to media.
The attacks come as Iraq is still counting the ballots from the March 7 parliamentary elections.