Although I do not know your end conditions from your drawing, a end applied moment cannot cause buckling. Buckling arise from the deflection equation E I y'' = M where M is proportional to the lateral deflection, y. In your problem, M, shown above, is just your end applied load and is never a function of the deflection.