Learning Swarm Interaction Dynamics from Density Evolution