A bomb hidden in a vegetable cart exploded south of Baghdad as the funeral procession for a slain top Shi'ite cleric passed close by , killing two people .