Former prisoner accused in shooting