Clashes killed at least 13 policemen at a prison in the Iraqi city of Tikrit that was seized by militants but has since been retaken by security forces.