At least 14 soldiers were killed in South Sudan after a suspected "love triangle" dispute led to a shootout, the army said.