Ferrari driver Charles Leclerc crashed out of qualifying for the Azerbaijan Grand Prix after hitting the barriers at the tightest section of the circuit.