A South Miami man who murdered his wife posted a photo of her body and a confession on Facebook.

Derek Medina fatally shot his wife, Jennifer Alfonso, in their townhouse Thursday morning. He then posted a picture of her body, which was bent backwards with the head facing a corner. There was blood on her arms and face. He captioned the photo, “Rip Jennifer Alfonso.”

The 31-year-old wrote that he was going to prison or getting the death penalty for killing his wife. He said she was punching him and that he wasn’t going to take the abuse anymore.

After posting his confession online, Medina turned himself in at a police station. The posts remained on Facebook until just before 5 pm.

A spokesman for the Miami-Dade Police Department confirmed that detectives found Jennifer Alfonso dead in her home. The couple had been married since April 2012.

A 10-year-old girl was also found at the scene, but was unharmed.

Medina listed his occupation as “Actor” at Burn Notice, but he appears to have only appeared as featured extra in a 2009 episode. Other photos on his Facebook page show him posing in a combat vest holding a knife and gun.

Medina had been using the cover of his latest self-help e-book, World Just Ask Yourself Why We Are Living a Life Full of Lies and How I an Emotional Writer Made All of My Professional Dreams Come True Blocking Society’s Teachings, as his profile picture. He had also written a book called How I Saved Someone’s Life and Marriage and Family Problems Thru Communication.

“I gave 6 months of working on 6 books of guidance and self help to saving people’s lives and relating to problems we must over come as one world one nation one country ‘give me the opportunity to touch your spirit’ give me a chance to change your world or make you understand the world we live in ‘these 6 books will change your world in seconds, days, months, years,” Derek Medina wrote on his website.