Officer who was under investigation after he was caught on video standing by as a man harassed a woman has resigned.