The mayor of one of North Dakota's largest cities resigned after an investigation into him mistakenly sending a lewd video to the city attorney.