Iraqi authorities say at least eight Iraqi prison guards and detainees have been killed in a shootout at a high-security jail in Baghdad .