Two caught in connection to pharmacy bandit