A bombing near the front gate of Myanmar's main prison for political detainees killed at least eight people, including visitors and prison personnel.