Britain says the soldiers were freed from a nearby house where they had been taken before the military action on the prison .