A judge is delaying jury selection for two weeks in the death penalty trial of a white man charged with killing nine black people at a Charleston church so his mental competency can be tested.

Federal Judge Richard Gergel issued an order Tuesday saying Dylann Roof is already undergoing the exam. Gergel asked for the results in a week so he can rule before jury selection is scheduled to begin again Nov. 21.

Gergel's order indicates he decided to order the exam after a defense motion Monday that the judge heard behind closed doors without prosecutors present. Details about the motion have not been released. Jury selection had been scheduled to start Wednesday.

Authorities say Roof killed the nine churchgoers in July 2015 because he hated black people.