German weekly Der Spiegel says a German-American journalist who was kidnapped in Somalia two years ago has been freed.

Der Spiegel reported on its website Tuesday that Michael Scott Moore was taken by plane to the Somali capital, Mogadishu. The 45-year-old Moore had freelanced for the magazine. He was kidnapped in January 2012 while researching a book on piracy.

Der Spiegel didn't provide details on the circumstances under which Moore was freed.

The Foreign Ministry confirmed a "German citizen who also had U.S. citizenship who was kidnapped in Somalia was set free today" but wouldn't give further details.