On the lagrangian formulation of a charged spinning particle in an external electromagnetic field