Security sources said Bangladeshi authorities were investigating any ties between the gunmen and trans-national Islamist extremist groups.