A capital murder defendant began yelling in court Thursday when a judge refused to admit evidence the man believed would help his case.

Franklin Davis, who has admitted killing a 16-year-old girl who accused him of rape, stood up and swore.

The outburst came after state District Judge Mike Snipes ruled he would not admit several recordings Davis made of phone conversations he had with the victim, Shania Gray, while pretending to be someone else. The jury was not present.

Defense attorney Karo Johnson tried to calm Davis.

Davis was ushered into a holding cell next to the courtroom, where he continued his tirade. A thump was heard from the cell.

Davis returned without his suit jacket. He put it back on and testimony resumed before the jury.

If convicted of capital murder, Davis could be sentenced to die.

Davis was recording the conversation and pretending to be someone else in an attempt to get Shania to change her story or say she lied about the rapes.

Davis shot and killed the girl in September 2012 after picking her up from school in Carrollton. Shania, who baby-sat Davis’ children, thought she would be meeting the person she had been talking to on the phone.