Walt Disney Studios announced it fired filmmaker James Gunn as director of “Guardians of the Galaxy, Vol. 3” for offensive jokes he made online a decade ago.