Federal agents charged a man with selling cocaine and prescription pills after a sting operation on the Christiansted boardwalk on St. Croix, according to U.S. District Court records.