Riot erupted as “a settling of accounts between the two groups” and led to huge fire in northern Brazil’s Altamira prison