PITTSBURGH (AP) — Pittsburgh Pirates All-Star closer Felipe Vázquez has been arrested on charges of pornography and soliciting a child.

Vázquez was taken into custody Tuesday morning by Pennsylvania State Police on one count of computer pornography/solicitation of a child and one count of providing obscene material to minors. Both charges are felonies. His arraignment was scheduled for Tuesday afternoon.

The Florida Department of Law Enforcement said it began investigating the 28-year-old Vázquez in August after learning of an alleged sexual relationship between Vázquez and a teenage girl living in Lee County, Florida. Authorities say Vázquez, who lives in Saint Cloud, Florida, and the victim began the relationship when the girl was 13.

The girl, now 15, allegedly received a text message from Vázquez in July in which he was performing a sex act. Vázquez also allegedly texted the girl to ask if she wanted to meet for a sexual encounter following the end of the baseball season, according to police.

Authorities arrested Vázquez and took him to Allegheny County Jail after executing a search warrant at his Pittsburgh apartment. Police said they seized electronic devices that will be used in the investigation. Vázquez will be extradited to Florida.

Vázquez, a two-time All-Star pitcher from Venezuela, is 5-1 with a 1.65 ERA for the Pirates this season. Pittsburgh is scheduled to play at home against Seattle on Tuesday night. The Pirates said they have informed the MLB commissioner’s office and expect Vázquez to be placed on administrative leave.

“We take this matter, and these charges in particular, extremely seriously,” Pirates president Frank Coonelly said in a statement.