The police officer who shot and killed a 1-year-old boy in Mississippi when he fired into a moving vehicle while responding to a shoplifting call has resigned.