You said the table was tight, so it could have been much worse. Someone could have had a set of sevens, fives or even kings. A pair of kings was very likely, and someone had it. Because you had a small stack and a flush draw, it was not a wrong move, but without the draw it's bad play.