Security official Luis Cardenas said Thursday that Eduardo Ramirez Valencia was detained Wednesday along with an accomplice in Hidalgo state .