Director of SEC Unit That Investigated Madoff Resigns