Ray Bradbury, a master of science fiction whose imaginative and lyrical evocations of the future reflected both the optimism and the anxieties of his own postwar America, died on Tuesday in Los Angeles. He was 91. His death was confirmed by his agent, Michael Congdon. By many estimations Mr. Bradbury was the writer most responsible for bringing modern science fiction into the literary mainstream.