Texas Republican Rep. Joe Barton says he will not seek re-election after nude photo of him was posted on social media.