"City On The Edge Of Forever."
I'm not sure it counts as a tragedy in the classic sense despite the tragic ending. I say this because even though the outcome was personally painful for Kirk, he ultimately made the right decision. Most dramatic tragedies are wrapped around the main characters making the wrong decisions - even if they seem justified at the time.