The state director for New Hampshire Sen. Kelly Ayotte has resigned after he was one of 10 men arrested this week in a prostitution sting in Nashua, officials said.

Nashua police said Sunday that David Wihby, 62, was arrested at a hotel Friday after he responded to a woman's ad on the Internet.

Ayotte released a statement late Saturday saying she was shocked at the arrest of a man she described as "a friend for many years."

"David obviously cannot continue his duties, and I have accepted his resignation," Ayotte said. "This is a very difficult time, and my thoughts and prayers are with everyone involved.

Wihby also serves as vice chairman of the Manchester School Committee.

Police said the 10 men were picked up in a sting operation at two city hotels and charged with prostitution and related offenses. The men range in age from 28 to 64.

Wihby posted a $2,000 personal recognizance bond and is scheduled to be arraigned in Nashua District Court May 11, police said.

Wihby did not immediately return calls to his Manchester home requesting comment.