He was so “struggling” for sure. He was a believing Moslem. He knew he was destined for hell as a homosexual unless he went out in official martyrdom, died killing infidels. Martyrdom transports him to Paradise.
It looks like between the two of us we have unraveled the reason for his mad act. Self hatred, anger at those who look like him and homosexual feelings/acts? that could only be redeemed by martyrdom and killing copies of himself.