A bomb-laden vehicle placed at the entrance of a prison in Somalian capital Mogadishu exploded, killing three and wounding five others.