What happened is clear. The Liberterian again played the spoilers role and gave the victory to the leftist Democrat.
The idea that the Liberterians take votes from both parties is completely misleading. 95% of the votes that they take are from conservatives.
Which is precisely why Republicans need to run candidates that can win those votes. Except for the 5% purists, the rest of the Libertarian voters will vote for and support conservative candidates. But they won't vote for statists or RINOs, and they are attracted to constitutionalists more than social issue conservatives.
Some careful planning and outreach can win many of the Libertarian voters since for most of them they and conservatives share a similar goal - more freedom and less government intrusion into society.
A constitution and freedom loving candidate will get Libertarian votes even if the candidate does not agree fully with many Libertarian goals. A RINO won't get "moderates" or Libertarians.