The index of a holomorphic flow with an isolated singularity