On a characterization of Dirichlet distribution