Mr. Sparkes told the station that the episode had started after he had decided to say something about the number of items in her cart on his way out of the store.

Ms. Thomas said in her Facebook video that she had between 15 and 20 items in her cart in the express lane, which was designated for 10 items or less. Mr. Sparkes said he was buying three items.

Mr. Sparkes, who denied being racist and said he was Cuban, acknowledged that he had called Ms. Thomas “lazy,” but said that had been the “worst” of his comments.

“This woman, Ms. Thomas, is playing the victim for political purposes because she is a state legislator,” he told the station. “I’m a Democrat and will vote Democrat for the rest of my life, so call me whatever you want to believe. For her political purposes, make it black, white, brown, whatever. It’s untrue.”

Ms. Thomas is a Democrat. Records about Mr. Sparkes’s party registration were not immediately available on Sunday.

Asked by the television station if Mr. Sparkes had told her “go back where you came from,” Ms. Thomas said: “I don’t want to say he said, ‘Go back to your country,’ or ‘Go back to where you came from.’ But he was making those types of references is what I remember.” In her Facebook video and on Twitter, however, she recounted that was what he had said.

In her television interview, she said she wanted him held accountable.

“People can’t just go out in public areas and berate pregnant women,” Ms. Thomas said. “Whether it was because I’m pregnant, whether it’s because I’m black.”