Puerto Rico's Gov. Ricardo Rosselló announced Saturday that his chief financial officer and secretary of state will step down following their participation in a private chat that used profanities to describe an ex-New York City official and a federal control board overseeing the island's finances.

The U.S. territory's CFO Christian Sobrino, who is also the governor's representative to the control board, announced he was stepping down via Twitter on Saturday. Its Secretary of State Luis G. Rivera Marín also offered his resignation.

Rosselló later released a statement saying he would let go members of his administration who participated in the chat on a messaging system used by government officials. The release of the chat's contents in local media had led to calls for the governor's resignation.

Get Breaking News Delivered to Your Inbox

Rosselló apologized for the comments late Thursday, saying he'd been working 18-hour days and releasing tensions when he called former New York City Council speaker Melissa Mark-Viverito the Spanish word for "whore" and in English told the oversight board to "go f**k yourself" followed by a string of emojis with the middle finger raised.

He said he would ask Ricardo Llerandi to remain as Puerto Rico's secretary of the interior and Anthony Maceira to stay as secretary of Public Affairs.

Justice Secretary Wanda Vázquez announced that she was appointing a special task force to determine whether any laws were broken regarding the chat and comments made.

The comments had drawn the ire of many Puerto Ricans who said they were ashamed of his language and of how this might affect the reputation of the U.S. territory, which had already come under scrutiny earlier this week with the arrests of former government officials including the island's education secretary.

Rosselló, who faces other troubles, has said he will not resign.

Days earlier, FBI agents arrested Julia Keleher, Puerto Rico's former education secretary, and five others on charges of steering federal money to unqualified, politically connected contractors.

Officials said the alleged fraud involves $15.5 million worth of federal funding issued between 2017 and 2019. They said $13 million was spent by Puerto Rico's Department of Education while Keleher was secretary and another $2.5 million spent by Ángela Ávila Marrero when she was director of Puerto Rico's Health Insurance Administration. Ávila Marrero was charged along with businessmen Fernando Scherrer-Caillet and Alberto Velázquez-Piñol, and education contractors Glenda E. Ponce-Mendoza and Mayra Ponce-Mendoza, who are sisters.

Officials said there was no evidence that Keleher or Ávila-Marrero had personally benefited from the scheme.

On Thursday, a group of protesters had gathered at Puerto Rico's main international airport to received Rosselló as he cut a European vacation short to address the arrests and the leaked chat. The protesters then traveled to the governor's seaside mansion where Rosselló spoke late Thursday and demanded his resignation.