One bomb exploded in front of a cafe and the other appeared to target the entrance to a military barracks , according to witnesses and the security official , who spoke on condition of anonymity because he was not allowed to speak to the press .