Allianz posts surprise 6% rise in third-quarter net profit