British driver claims first win from the pole for AFS Racing Andretti Autosport.