Updated

Staff at the San Diego Zoo safely removed a dog that became trapped in an enclosure with gorillas on Sunday.

The dog, identified as a male shepherd, reportedly entered the enclosure of its own accord. A gorilla soon spotted the dog and chased it, however, leading visitors to start yelling the gorilla's name in an attempt to distract it, according to CBS 8.

Staff with the San Diego Human Society soon intervened, removing the gorillas and rescuing the dog.

Gorilla San Diego Zoo

A dog spotted inside a gorilla enclosure at the San Diego Zoo on June 12, 2022.  (Ryan Judson via Storyful)

"As soon as zoo staff saw the dog, they moved the gorillas out," the SD Humane Society said in a statement.

UNIDENTIFIED OBJECT FILED OUTSIDE AMARILLO ZOO, CITY OFFICIALS ASK FOR THEORIES

The dog, which did not have a microchip, is now being held so the owner can be identified.

GRANDFATHER FORCED TO FIGHT KANGAROO THAT ATTACKED HIS DOGS

"Our Humane Officers were able to move in and safely leash the shepherd and bring him back to our Escondido Campus for evaluation," it continued.

The incident comes days after an orangutan grabbed a visitor through its cage at a zoo in Indonesia.

Footage shows the animal snatching at a visitor's shirt, triggering a scuffle where the man tries to escape the animal's grasp.

CLICK HERE TO GET THE FOX NEWS APP

The incident reportedly took place at the Kasang Kulim Zoo in the Indonesian province of Riau.