BROWNSVILLE (AP) — Prosecutors say a South Texas police officer was charged with human smuggling after he was caught among the dunes at Padre Island National Seashore during a Border Patrol search for immigrants.

Brownsville police Officer Valerie Rivas on Tuesday appeared in federal court in Corpus Christi and was released on a $20,000 unsecured bond. Brownsville police put Rivas on paid administrative leave.

screen shot 2017 08 21 at 5 10 04 pm South Texas Officer Accused Of Human Smuggling On Leave

immigrants in ice truck (U.S. Customs and Border Protection)

A criminal complaint says Rivas dated a Mexican man who was supposed to be smuggled to Victoria but never showed up and she was looking for him. The complaint says Rivas, when located Feb. 26 by Border Patrol agents, was armed and identified herself as a police officer.

Agents earlier found her boyfriend.

Rivas attorney Micah Wayne Hatley said Wednesday that his is client is not guilty.