There are two plausible possibilities for his motivation: he was a militant Trump-hater who wanted to kill lots of presumed Trump-supporting "deplorables," or he was a recent convert to Islam who was heeding ISIS's call for an attack in Las Vegas.
Whether the authorities will allow the public to learn what his motivation was remains uncertain.