Gunman kills three in US