Beavan pitches Mariners past Twins 5-4