He also spent most, if not all, of his life in the U.K. Donald Trump's "Muslim ban" and "extreme vetting" would not have stopped him

He seems to be a loser / minor  criminal who recently converted / radicalized.  Playing amateur psychologist, I suggest that he had a mid-life crisis, and decided to convert a formerly meaningless life into a glorious death.