Looks to me like it might be a virus. Found
this about bean mosaic virus. Some of the leaves in your picture resemble the ones on the website, especially the puckering of the leaves.
Otherwise, it's possible that it's a nutrient deficiency of some sort, maybe of something that the tomatoes don't need as much of as the beans. Not sure what nutrients fit that bill, other than maybe molybdenum (since legumes use Mo in their nitrogen fixation enzymes) but Mo deficiency doesn't really look like that in the pictures I can find.