Gunman kills three in Pakistan sectarian attack