A Massachusetts man was charged with hate crimes after he threatened an airline worker at Kennedy International Airport who was wearing a head scarf, kicked her and told her “Trump is here now” and “he will get rid of all of you,” officials said on Thursday.

The man, Robin A. Rhodes, 57, of Worcester, Mass., arrived from Aruba on Wednesday night and was awaiting a connecting flight to Massachusetts when he approached the worker, Rabeeya Khan, in the Delta Air Lines Sky Club lounge at Terminal 2 between 7:10 p.m. and 9:45 p.m., the Queens district attorney, Richard A. Brown, said in a statement on Thursday. Ms. Khan wore a head scarf known as a hijab.

Mr. Rhodes went to her office door and asked if she was sleeping and, according to the statement, said: “Are you praying? What are you doing?” He then punched the door, which hit the back of her chair. He threatened Ms. Khan and kicked her in the right leg, according to the statement. She moved to a corner of the office but he kicked the door, stepped into the office and blocked her from leaving.

When another person tried to calm him, he moved away from the door and Ms. Khan ran to the front desk of the lounge, according to the statement. Mr. Rhodes followed her, got on his knees and began to bow down in imitation of a Muslim praying and shouted expletives about Islam and ISIS, the prosecutor’s office said.