Carmel police officer resigns, charged in criminal investigation