Police in Arizona have confirmed that a shooting at a Tucson gay bar that left three people dead, including the shooter, was a hate crime.