Frustration of total internal reflection by a hidden nanowire