A group of as many as nine gunmen have attacked a restaurant popular with foreigners in a diplomatic zone of the Bangladeshi capital, taking hostages and exchanging gunfire with security forces, according to a restaurant staff member and local media reports.