Pedro Beato threw a wild pitch with the bases loaded in the 10th inning that allowed the winning run to score, and the Washington Nationals rallied for a 5-4 victory after blowing a late lead Tuesday night.

The Nationals fell behind twice after leading 2-0 going into the ninth. Mets pinch-hitter Jordany Valdespin hit a three-run homer off closer Tyler Clippard.

But Danny Espinosa's single off Bobby Parnell in the bottom half sent it to extra innings. Josh Thole's RBI double put the Mets up 4-3 in the 10th before Washington came back again.

Bryce Harper tied it with a run-scoring triple of Tim Byrdak (2-1) before Beato entered with the bases loaded.

(Copyright 2012 by The Associated Press.  All Rights Reserved.)