Germany says terror arrest illegal