Dynamics of a bubble in a power-law fluid confined within an elastic solid