Investigation opened after wrong suspect beaten