Germany’s foreign minister has urged Spain not to extradite a German writer to Turkey after he was arrested on a Turkish warrant.