A shark attacked an American diver off the coast of Mexico on Monday, taking a bite out of his forearm, officials said.

The 23-year-old victim, whose name and hometown have not been publicly released, was bitten while diving in Magdalena Bay, located near Baja California Sur off northwestern Mexico, according to the Mexican Navy.

The man was able to swim on his own back to his charter boat in the Pacific near San Carlos and call for help, officials said.

FLORIDA MAN JUMPS OFF SURFBOARD, LANDS ON SHARK AT 'SHARK BITE CAPITAL OF THE WORLD'

The navy sent a boat to retrieve the man and took him to a local hospital for treatment. His injury was not considered life-threatening.

The 23-year-old, who was bitten on his forearm, managed to swim back to his boat after the shark attack, officials said.

The 23-year-old, who was bitten on his forearm, managed to swim back to his boat after the shark attack, officials said. (Armada de México)

Officials didn’t release any information on the species of shark involved in the attack.

Shark attacks in Mexico have been seen as relatively uncommon. There have been at least 39 confirmed unprovoked shark attacks in Mexico since 1907, according to the Florida Museum’s International Shark File.

CLICK HERE FOR THE FOX NEWS APP

The southern state of Guerrero ranked first on the list with 11 confirmed reports, followed by Veracruz with nine and Quintana Roo with eight, according to the data.

Baja California Sur was listed fifth, with two attacks.

The Associated Press contributed to this report.