The child was with a relative when the alarming incident took place as a suspect is now in custody