Man accused of torturing 4-year-old boy