Top legal official tells reporters gunman had 4 kilograms of explosives in his car when arrested, calls deadly anti-Semitic attack in city of Halle ‘terrorism’