A 22-month-old boy died after officers said his mother's boyfriend slammed the child's head into a wall.