Surgeons successfully removed a 6-inch fishing spear from the brain of a man who was struck while diving off the coast of Rio de Janeiro, doctors said Sunday.

Emerson de Oliveira Abreu apparently fired the spear, which ricocheted off rocks and penetrated his own head so deeply that only the tip was showing, family members and authorities said.

ocal media initially reported that Abreu was accidentally shot by a friend.

PHOTOS: Click here to see other "Outrageous Injuries"

Doctor Manoel Moreira told Globo TV that the it took five hours of high-risk surgery to remove the projectile from Abreu, who is doing well and is not likely to suffer major, lasting damage.

The spear entered just above Abreu's left eye and missed the most critical areas of his brain, Moreira said.

"It's a miracle," said Abreu's father, Edilson, according to Globo's G1 Web site.