Updated

Florida sheriff's officials say a deputy facing 29 child sex-related charges has died after shooting himself.

Broward County Sheriff's spokeswoman Veda Coleman-Wright said in a news release that 43-year-old Sgt. Kreg Costa died Wednesday night at a hospital in Fort Lauderdale. She says Costa shot himself at his home in Sunrise after being released from jail on bond earlier Wednesday.

Investigators say staff at Costa's office noticed he was staying in his office during the night. A check into his computer showed he was viewing websites dedicated to hardcore pornography, incest and bondage while at work.

Authorities also say he exchanged sexually explicit emails and videos with a 16-year-old girl.

Costa had been with the sheriff's office since 1999. He'd been suspended with pay since April 24.