The definition of "to put your foot in your mouth" here includes a element of embarrassment at having said the wrong thing unintentionally, perhaps trying to be helpful but actually making matters even more awkward. Admittedly that's not quite the same as the original situation here, where the "helper" was displaying ignorance and not even caring.