A Miami-Dade man has died after accidentally shooting himself in the chest while showing a family member how to clean a gun, police said.

Josmel Herrera, 43, was on a video call with the family member at his home in the 10600 block of Southwest 27th Street Tuesday night when the shooting happened, Miami-Dade Police said.

Herrera was explaining the proper way to clean a firearm when he shot himself, police said.

Police and fire rescue workers responded to the home just after 7:20 p.m. and performed emergency care before taking Herrera to Kendall Regional Trauma Center, where he later died.

The investigation into the shooting is ongoing, police said.