http://www.telegraph.co.uk/news/2016...bangladeshi-e/

"They are all Bangladeshis. They are from rich families, they have good educational background," said Asaduzzaman Khan, the country's home minister, of the gunmen.
Another source I can't place here because it was based on a phone call, stated the captured terrorist indicated it was becoming a fad for college kids to associate with the Islamic State.

Regardless, these kids weren't motivated by poverty or not having jobs. They were well do to kids. In some ways this reminds me of many who join far left militant groups or protests, and then when they're interviewed they prove they have no knowledge (except for a limited number) of what they're fighting for, or what they're protesting against, it is just something cool to do. We tend to ignore the psychological aspects when we focus on the political factors, which at times can be a red herring.