A 74-year-old Long Island man was arrested Friday on charges that he made death threats against two United States senators in retaliation for their support of Brett M. Kavanaugh’s nomination to the Supreme Court.

The man, Ronald DeRisi, threatened to murder and assault the senators — who were not named — in more than 10 voice mail messages left to their offices, according to a complaint prepared by the United States Capitol Police.

In the voice mail messages, Mr. DeRisi, who is from Smithtown, N.Y., used threats of bodily harm laced with expletives to discourage the senators from voting to approve Judge Kavanaugh’s nomination and then admonished one for doing so, the complaint said.

Mr. DeRisi was ordered by a federal judge on Friday to be detained because he could pose a danger to the community, said John Marzulli, a spokesman for the United States Attorney’s Office for the Eastern District of New York. The judge also ordered a psychological evaluation.