“Stonewall” Jackson and his men, returning from an attack, were fired on by their own Confederate brethren who thought Jackson's group was Union soldiers. Jackson was hit by two bullets in his left arm, which was then amputated. Eight days later Jackson died of complications from pneumonia
Hope this helps