It's not a crime but it is harrassment and it is illegal.  TSA is required to abide by all Fed Civil Rights laws including not discriminating on the basis of sex. In 1987, the US Supreme Court ruled that "sexual harassment is a form of sex discrimination."