Police in Bangladesh say they have killed the main suspect behind last month's attack on a cafe in Dhaka that left 22 people dead.