District investigates controversial punishment in fourth grade class