Ansari was accused by a 23-year-old photographer who alleged that he forced her to engage in sexual activity.