Michael Scott Moore spent 977 days captive to Somali pirates. “I didn’t know how it would end,” he said.