Published: Jul 25, 2011 11:10 PM EDT
Updated: Jul 25, 2011 10:11 PM EDT

FORT MYERS, Fla.- Twenty-five year-old Dustin Lofty walks into the courtroom hoping a judge will throw out what prosecutors call a taped confession.

"I made a really stupid mistake I know," Lofty told a detective in 2010.

The judge listened to the recording where the detective asks Lofty questions after his arrest. Deputies say he offered to kill a woman for former Cape Coral city councilman Eric Grill. But deputies orchestrated a take down after Grill turned him in.

Prosecutors revealed today Lofty faxed Grill a message saying he was an assassin who could help to take care of his problems. Grill was going through a legal battle with a woman and Lofty offered to make her go away.

When Lofty was arrested he was carrying a book in his hand called "The Hit Parade," a novel about an assassin. He admitted he was reading it to learn more about how to kill.

"I was just curious. I didn't know if I could go through with the whole thing," Lofty told the detective.

A judge will allow the jury to hear the recording because Lofty agreed to the questioning without a lawyer.

The detective asks if there's anything Lofty wants to add to the investigation.

"I'm an idiot," replied Lofty.

His trial is set for August 1.