Unveiling the non-Abelian statistics of $D(S_3)$ anyons via photonic simulation