The article doesn't detail exactly how the exposure happened. I'm guessing it was a wardrobe malfunction rather than a deliberate act. If so, the "punishment" should be training to increase awareness of clothing which has the potential to result in such exposure, and more privacy should be provided when frisking passengers.
Anyone who laughs at a passenger's embarrassment in that situation, or makes jokes such as "I'll have to watch the video" in the passenger's presence, is behaving unprofessionally, and should be replaced by someone who is more capable of maintaining professional behavior.