PINELLAS PARK — A 28-year-old man shot himself in the chest Wednesday while showing off his handgun live on a social media messenger app, according to police.

The incident took place at about 3:15 p.m. at a home on the 7800 block of 46th Street N. Benny Ortiz was "showing off and playing with his handgun," according to Pinellas Park police, while communicating with a family member who lives out of state family via an undisclosed app.

The gun "accidentally discharged" while Ortiz was live on the app, police said.

It doesn't appear the family member, whose identity and relationship to Ortiz were not released, saw the shooting. Rather, "the next thing they heard was the gun go off and Ortiz began making noises indicating he was injured," police said.

Pinellas Park officers arrived at Ortiz's home and said they found him with a gunshot wound to the chest, the department said.

His mother also arrived, called by the out-of-state family member.

Investigators initially thought Ortiz was shot through a window, but then they found the gun inside the home and spoke with the relative.

Ortiz was taken to a hospital for medical treatment. His condition was not released late Wednesday.