DHAKA (Reuters) - One of the three militants killed by Bangladeshi security forces on Saturday in connection with July’s Dhaka cafe attack came from a posh area of the city like some of the attackers and went to a prestigious foreign university, police said on Sunday.

Slideshow ( 4 images )

Towsif Hossain was from Dhaka’s leafy Dhanmondi neighborhood and was missing since February. Like Nibras Islam, one of the five young and affluent cafe attackers who was killed after a 12-hour siege on July 2, Hossain had also attended the Kuala Lumpur campus of Australia’s prestigious Monash University, the head of the Dhaka police counterterrorism unit told reporters.

The other militant killed on Saturday morning was Fazle Rabbi from the Jessore district northwest of Dhaka, who was missing from last April, counter-terrorism head Monirul Islam said. Rabbi’s family has fled, police said.

The cafe attack was claimed by Islamic State and killed 22 people, mostly foreigners. It alarmed security and political experts because of the profile of the perpetrators: educated youths from privileged backgrounds who had turned to radical Islamism only recently. Both Hossain and Rabbi were around 25, police said.

Malaysian police said last month that at least two of the militants behind the cafe attack had attended Monash, although they did not name them. The militants singled out non-Muslims and foreigners in the attack, killing Italians, Japanese, an American and an Indian.

The identity of Tamim Ahmed Chowdhury, a 30-year-old Bangladeshi-born Canadian citizen suspected to be the mastermind of the cafe attack, was confirmed on Saturday itself.

The militants were cornered on Saturday in a hideout on the outskirts of Dhaka, and having refused to surrender, were killed in the ensuing gun battle.

Bangladesh Prime Minister Sheikh Hasina has said the police operation would uphold confidence and the image of her country, and came ahead of U.S. Secretary of State John Kerry’s visit to Dhaka on Monday.

The government has denied the involvement of Islamic State in the attack and instead blamed Jamaat-ul-Mujahideen Bangladesh, which has pledged allegiance to the group active in Syria and Iraq, for organizing the assault that has weighed on the poor South Asian economy’s $28 billion garments export industry.

Analysts say Islamic State in April identified Chowdhury as its national commander in Bangladesh.