NO! Don't avoid those types of interaction.
I doubt there is a parent on the face of the earth that would not "bust a button" hearing a stranger compliment his/her child (and there is nobody stranger than an official
). Believe me, the "criticsm" a child receives always makes it to Mom and Dad...you probably made that Dad's night and I would bet the farm his son and many others heard about your comment as well.