CONCORD — A University of New Hampshire student who registered to vote in Durham and cast an absentee ballot in Massachusetts during the 2016 election admitted to committing voter fraud on Thursday.

Spencer McKinnon, 21, pleaded guilty in Strafford County Superior Court to a misdemeanor charge of providing a false statement on a voter registration form, the Attorney General’s office announced Friday. His sentence of six months in a house of corrections was suspended on the condition that he complete 200 hours of community service and pay a $2,000 fine. McKinnon also lost the right to vote in New Hampshire.

On Oct. 24, 2016, McKinnon mailed an absentee ballot to the clerk in his hometown of Dracut, Mass. Two days later, he signed a voter registration form in Durham and attested that he “was not domiciled or voting in any other state or any other city/town,” according to the Attorney General’s office.

McKinnon was originally indicted on a felony voter fraud charge for actually voting in Durham after having voted in Massachusetts, but the Attorney General’s office dropped that charge as part of the plea agreement.

His conviction was the first one resulting from the state’s use of the Interstate Voter Crosscheck Program. So far, the Attorney General’s office has also brought voter fraud charges against three other people for casting ballots in the 2016 election.