Bangladesh security forces killed four militants today, including the alleged mastermind of an attack on a cafe in Dhaka last month in which 22 people, mostly foreigners, were killed, the head of Dhaka's counter-terrorism police unit told Reuters.

The militants were cornered in an early morning raid on their hideout in Naraynganj, on the outskirts of the capital, and were killed after refusing to surrender, Additional Commissioner of Police Monirul Islam said.

Bangladesh-born Canadian citizen Tamim Ahmed Chowdhury, the alleged mastermind of the attack on the cafe, was among those killed.

Islamic State had claimed responsibility for the cafe attack and, while the government has dismissed the claim, security experts say the scale and sophistication of the assault suggested links to trans-national networks.

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

The suspected Islamist militants singled out non-Muslims and foreigner hostages in the July 1 evening attack, killing Italians, Japanese, an American and an Indian before security forces stormed the eatery to end the 12-hour siege that has weighed on Bangladesh's multi-billion dollar garments industry.

The government says the July 1 attack -- and another on July 26 in which police killed nine militants believed to be plotting a similar assault -- were the work of domestic militants.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.