DHAKA, Bangladesh — A group of as many as nine gunmen attacked a restaurant popular with foreigners in a diplomatic zone of the Bangladeshi capital on Friday night, taking hostages and exchanging gunfire with security forces, authorities said. The head of the elite anti-crime force, Rapid Action Battalion, or RAB, told reporters Friday night that they were working to save the lives of the people trapped inside the Holey Artisan Bakery.