The accused allegedly woke the boy up at 4.30 a.m. on Tuesday and hit him with the pipe on his back and limbs, as per the complaint