Twelve people including six hostages were killed on Friday in a shootout between police and bank robbers attempting to blow up ATMs at two banks in a small town in northeastern Brazil, authorities said.