Business Tech giant says it is working with Foxconn after criticism from labor-rights groups over police beating of workers