Shia Muslim militiamen in eastern Iraq have carried out reprisals against Sunni Muslims after bombs killed 20 people in a cafe, security sources say.