A British Airways plane was hit by lightning during stormy weather in Brazil.