Reigning 125cc champion Julian Simon secured his first Moto2 pole position in a thrilling climax to Indianapolis qualifying.