Jockey Angel Castillo was removed from his mounts during the middle of Tuesday’s card at Parx Racing after a search of the jockeys’ room by Pennsylvania Horse Racing Commission personnel turned up an electrical device, the commission’s top official said Wednesday. The unannounced search occurred just after the fourth race at Parx, according to Walter Remmert, acting executive secretary of the commission. Although Remmert would not describe where the electrical device was found, he said commission personnel concluded it belonged to Castillo, who is the second-leading rider by wins at Parx this year. Castillo immediately was removed from the remainder of his mounts. “We were not completely clear about the how and why and where,” Remmert said. “But over time, we determined that the device belonged” to Castillo. Alan Pincus, an attorney representing Castillo, said the jockey “categorically denies having a device in his possession,” and he said the device was found in a “common area” of the jockeys’ room after commission personnel already had searched Castillo and his locker. “This is an outrage,” Pincus said. “They searched his locker, searched him, finding nothing. He went down to ride the next race, and next thing you know, they are down there telling him he can’t ride, and he’s being escorted off the track.” Pincus filed a motion with the commission on Wednesday seeking a stay of any further commission action against Castillo, and on Thursday morning, the commission granted the stay pending the stewards’ hearing into the incident. The incident was first reported by the Paulick Report. Castillo is expected to face a hearing in front of the Parx stewards in the next several days, Remmert said. The next live racing day at Parx is Saturday. Castillo is named on four horses on Saturday but no horses on Sunday. Electrical devices typically are small machines that can fit in the palm or the end of a riding crop and can deliver a weak electric current to a horse. They are illegal to possess at any racetrack in the United States. This is the second incident this year involving the alleged use of an electrical device at a U.S. track. In January, stewards at Sam Houston Race Park in Texas suspended jockey Roman Chapa indefinitely after he was alleged to have used an electrical device on a horse in a stakes race at the track. Chapa later was suspended five years by the commission and has been charged with multiple crimes by local prosecutors. According to records maintained by Equibase, Castillo has won 46 times this year from 233 mounts, with earnings of $1.2 million. Thirty-eight of those wins have come at Parx, good for second place by wins, with his earnings at the track placing him third among riders. For his career, Castillo has 502 wins from 3,008 mounts, with earnings of $12.1 million. Correction: An earlier version of this article incorrectly stated that Castillo was not named on any mounts on the Saturday card at Parx.