The victims in the shooting at an ice rink in Rhode Island are the attacker's ex-wife and son, police have said.