A man living out of a shack in a remote camp in the Alaskan wilderness spent weeks alone and fending off a local bear until a coast guard pilot fortuitously spotted him waving for help.