He is suspected of two counts of murder and seven of attempted murder from the attack in the city of Halle.
News agency dpa reported that the man admitted to the crime and a right-wing extremist motive, and federal prosecutors say he testified for several hours.
His lawyer, Hans-Dieter Weber, told broadcaster Suedwestrundfunk on Friday “it would be pointless to dispute anything, and he didn’t do that.”
The attack happened on Yom Kippur, Judaism’s holiest day, and was broadcast live on a popular streaming site.
Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.