Federal prosecutors suspect terrorism in the shooting in the German city of Hanau, Peter Beuth, the interior minister of the state of Hesse, said on Thursday.