https://www.bbc.com/news/articles/cx2e14z2j9jo
He was smart enough to study at Brown_University, but eventually became disgruntled with things.
Perhaps he was motivated by revenge against some people and the education system in general.
At some point he might have decided to go on a suicide mission, because after shooting a bunch of people, he knew that he would likely be facing a life of incarceration.
He chose self destruction, rather than life in prison. Its very strange that an armed person with malicious intent could just walk onto a campus, attack and then easily walk away without at least being recorded by a few cameras.
https://thedigitallabyrinth.blogspot.com/search?q=Brown+University+shooting