It was the first shooting of a U.S. president or major party candidate since the 1981 attempted assassination of Republican President Ronald Reagan.