Marc Márquez will start from pole position for the Red Bull Indianapolis Grand Prix after holding off Simone Corsi by just one thousandth of a second.