Mesa's top cop resigns by text