The incident has sparked a debate over child safety and discipline on commercial planes.