Connection between Massey products and Milnor invariants