Levi decomposition for Lie algebras of vector fields