Josh Naylor hit a game-ending single, and the Seattle Mariners beat the Athletics on Wednesday to avoid a three-game sweep.