The gunman who killed five people and wounded eight others in a mass shooting in downtown Louisville, Kentucky, legally purchased the AR-15 assault rifle used in the shooting six days earlier, according to police.