Generally, the Milfanito were created by the "Great Dead One" to comfort the Undead wandering the Shrine of Amana, but they are not the ones who attended the seal that imprisoned the Demon of Song. The few ones left, who once sealed away the Demon, are the hollowed sorceresses that attack you in the Shrine. According to the official guide, they are
Hollowed priestesses formerly responsible for performing the sealing rituals which imprisoned the Demon of Song. Over time the line of shrine maidens gradually died off and, with no successors to pass down the sacred rites, the seal broke and the Demon was freed from its prison. (guide p.253)
The description of the "Demon of Song Soul" reveals, that
When this demon developed a taste for human flesh, it was contained within the Shrine of Amana, but the line of priestesses who looked after the shrine and appeased the creature have died off.
Given that the injured Milfanito is closest to the Demon, it is most likely she has been attacked by the now unleashed Demon of Song. According to the official guide, she is
A scarred and wounded Milfanito found cowering outside the Boss room on the Shrine of Amana, apparently attacked by the Demon of Song. How she survived the encounter is uncertain; she might actually be a ghost. (guide p.416)
Her being a ghost could explain why she vanishes when you try to interact with her. A reason for her being attacked by the Demon of Song could be that she strayed too far into the Demon's territory, without being aware of it. The reason for this is that they
possess only rudimentary awareness of their individual selves; this trait combined with their purity, innocence and general naiveté has resulted in several of their number either wandering into the territory of the Demon of Song or being kidnapped and carried off by outsiders with ill intentions. (guide p.415)
The last part offers an explanation for the imprisoned Milfanito in the Castle's tower, who was kidnapped by the Embedded.
The following deals with who the Milfanito, who the injured one is a part of, are in general. It is possible that they were, along with the Fenito, created by Gravelord Nito, who was the first of the dead.
Both the Milfanito and the Fenito mention that they were created by the Great Dead One. The item description of Nito's "Lord Soul" in Dark Souls 1 reads:
Soul of Gravelord Nito, first of the dead. This Lord Soul was discovered at the dawn of the Age of Fire. Gravelord Nito administers the death of all manner of beings.
The Fenito Agdayne reveals in his dialogue that
I am a Fenito. We weave death, and watch over the dead. This task was granted to me by the one who gave us the first death.
Along with the obvious naming FeNITO and MilfaNITO, this stronly suggests that Nito created both, and they both have the task to look after the dead. The Milfanito in the Shrine of Amana are
songstress[es] given eternal life by the Great Dead One. The Milfanito are an immortal race who sing to comfort those bound by death and Dark, reside in the Shrine of Amana and have never seen the outside world. (guide p.415)