Man accused of trying to rape woman