Dramatic cellphone video shows the anguished moments after a 7-year-old girl was killed in a freak accident at a Moroccan zoo when an elephant lobbed a rock in her direction, striking her on the head.

The unidentified girl was posing with her family beside the animal’s open-air enclosure at the Rabat Zoo in the Moroccan capital of Rabat on Tuesday at about 1 p.m. local time when tragedy struck, local media reported.

Witnesses said that the animal suddenly picked up big stone in its trunk and tossed it into the air, hitting the girl and knocking her unconscious.

Footage shows the child lying on the ground, bleeding from her head as a pack of people came to her aid.

The video also showed an elephant in the background, and the stone that caused her death.

The girl died at an area hospital after succumbing to her injuries.

Rabat Zoo officials announced the death on its Twitter account, saying, “It is with great sadness that we announce the accidental death of a little girl victim of a stone throw launched by an elephant.”

A zoo spokesman said that the girl’s death was an “accident” and that there had been no security breaches.

“Accidents of this type are rare, unforeseeable, and unusual. Accidents of this nature happened in international zoos, most recently in Disney World Orlando and the Cincinnati Zoo in the United States,” the spokesman said in a statement, according to Morocco World News.