The attack was the first attempt to assassinate a president or presidential candidate since Ronald Reagan was shot in 1981.