The excellent and necessary site Baseball's Greatest Sacrifice has a roll call of every ballplayer -- amateur, minor-league or major-league -- who died while serving in the military. Here's the first name on that list:

Of course, we can't know beyond all doubt whether Captain Bredell (other sources list him as a Lieutenant) was the first baseball player of any kind to perish while wearing a military uniform, but to the best of our knowledge and reources, he was indeed that.

The definitive account of Bredell's life and importance to baseball (he was a pioneer when it comes to the early days of organized and sanctioned baseball in St. Louis) can be found at This Game of Games.  Via This Game of Games, here's a portion of Bredell's obituary in the Daily Richmond Examiner, dated December 28, 1864:

Killed, on the 16th of November, in a skirmish between Mosby's cavalry and the enemy, Lieutenant Edward Bredell, of Saint Louis, Missouri, in the twenty-sixth year of his age.

This gallant young man left a luxurious home, where he was the idol of his parents, and surrounded by every comfort and enjoyment that wealth could supply, to enter the Southern army.

As for the final burial of Bredell, it was a tortuous process. Again, This Game of Games:

We know that Bredell was killed near Ashby's Gap on November 16, 1864.  It appears that he was buried quickly, "where he fell," in Clarke County, Virginia, perhaps on a sandbar or shoal in the Shenandoah River.  Sometime later, most likely before the end of the war but certainly before 1867, when Partisan Life with Col. John Mosby was published, his remains were moved to a cemetery, probably at Cool Springs Church in  Fauquier County, Virginia.  Both Partisan Life and Reminiscences agree that Bredell's remains were moved to Fauquier County.

...

Finally, probably in 1871, Edward Bredell was buried at Bellefontaine.  It is unknown whether or not a burial in the cemetery was originally refused because Bredell had served with the Confederate Army. 

Here, via Fold3.com, is Bredell's final resting place:

It's not my intention to misappropriate Veterans Day by highlighting a member of the Confederacy, which, of course, was an enemy to this nation. Rather, it's to highlight the breadth of service when it comes to baseball players. Such is the sport's place in our history. 

Happy Veterans Day to all who serve and all who have served.