A Customs and Border Protection officer let undocumented immigrants into the U.S. in exchange for sexual favors and money, according to the FBI.

Jose Luis Cota, 50, an officer at the San Ysidro Port of Entry, was arrested Wednesday. Cota faces several charges, including destruction, alteration or falsification of records, bribery of public official and receiving bribe by public official.

Miriam Elizabeth Juarez-Herrera, 31, an undocumented immigrant, also was arrested, and charged with smuggling unlawful aliens into the U.S. from Mexico.

Authorities also arrested Gilberto Aguilar-Martinez, 31, a two-time convicted felon and previously deported undocumented immigrant. He faces a single charge of assisting with the alien smuggling operation.

In exchange, she told agents, she paid him with monetary and sexual bribes, according to the complaint.

In a statement, CBP said Cota first began with the agency in August 2001. He is on unpaid administrative leave.

"We do not tolerate corruption within our ranks, and we fully cooperate with any criminal or administrative investigations of alleged misconduct by any of our personnel. CBP stresses honor and integrity in every aspect of our mission, and the overwhelming majority of CBP employees and officers perform their duties with honor and distinction, working tirelessly every day to keep our country safe," a statement from the agency says.

On Thursday, Cota, Juerez-Herrera and Aguilar-Martinez were booked into the Metropolitan Correctional Center in San Diego.

At their first appearance in federal court Thursday, the U.S. moved to detain all three due to their risk of flight, according to the FBI. It was not immediately clear if any of the three had attorneys.

The accused will next appear in court for a detention hearing on Sept. 14. A preliminary hearing is scheduled or Sept. 22.