S.Korean president accepts top prosecutor resignation over controversial bill