Terror motive ‘not ruled out’ in Germany hostage-taking