It strikes me as completely possible that the exit was negotiated. The fact that they knew his exact location and "luckily" nabbed him right before he went into some kind of panic room / bunker is certainly... something.
But it seems equally likely to me that he was sold out by somebody in the VZ government/military. And that the paltry military resistance was because they saw direct confrontation with the US as suicidal.