The pronoun alone is not the problem; there seems to be confusion in both grammar structure and fact; perhaps it is an editing mistake. Here are some facts that need to be pieced in: Ama-no-Koyane-no-mikoto is a kami, a male deity of the Japanese religion of Shinto. He is considered to be an ancestor of the the Nakatomi and Fujiwara clan.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.