Mukerjee wasn't being detained, or kept, beyond the basic protocol of "unscreened passengers have to be escorted out of the terminal."
Mukerjee was free to leave, he simple had to leave the building entirely. He could not just leave and then step back into line, as was his intention, for numerous utterly sane reasons.