See the NY Times column, "On Language; Who Shot John?" by William Safire, Dec. 21, 1986, on line.
He discusses possible origins. The column also discusses a number of other expressions, such as "a Charleston butterfly," and "a Rocky Mountain canary."