Oscar Otero Aguilar, a vet from Mexico City, was posing with a handgun for his Facebook page.
However, his search for an impressive profile picture turned tragic when he shot himself in the head and died on the way to hospital.
The gun was loaded and went off as he tried to take the picture, 'The Huffington Post' reported.
Police said he had been messing around with the gun and taking pictures when it accidentally went off.
"I heard a gunshot, and then I heard somebody screaming and realised somebody had been hurt. I called the police straight away and when they arrived they found that he was still alive," Aguilar's neighbour said.
Aguilar's Facebook page is filled with selfies, with pictures of himself in his car, posing with women and other images, the report said.