I can't imagine the body mistaking one type of bacteria, i.e., a 'good' bacteria for a 'bad' one, but I'm no chemist or biologist.
More likely, as you said, you got some bad veggies and the milk kefir went to work trying to fight them. Then again, I'm just guessing, too, based on what I've read, heard, researched or experienced!