A former deputy U.S. marshal in North Dakota has been sentenced to three years in prison for spying on young women in Bismarck dressing rooms.

A former deputy U.S. marshal in North Dakota has been sentenced to three years in prison for spying on young women in Bismarck dressing rooms.

Thirty-year-old Michael Rivera was convicted in February of misdemeanors including surreptitious intrusion and creating and attempting to create sexually expressive images. He was found not guilty of more serious felony charges.

Rivera was sentenced in state court Tuesday, and ordered to get sex offender treatment while in prison.

Rivera was sentenced in May in federal court to seven years in prison on child pornography charges. Authorities say the images were found on Rivera's computer as police were investigating the dressing room allegations.

Rivera will serve the federal sentence first.