Egan's walk-off homer snaps Midland's 10-game streak