Indonesia's president will soon sign a decree authorizing the use of chemical castration to punish pedophiles, the attorney general said, following a string of headline-grabbing child sex crimes.

Indonesia will join a small group of nations that allow such punishment, including Poland, Russia, and Estonia, as well as some U.S. states. In 2011, South Korea became the first Asian country to use chemical castration as a punishment.

"We are very concerned about child molestation abuse cases. This phenomenon has reached extraordinary levels," Attorney General H.M. Prasetyo told reporters after a Cabinet meeting late on Tuesday. "It has been agreed that there will be additional punishment in order to make people think a thousand times before doing this."

President Joko Widodo is expected to issue a presidential decree soon approving the punishment, Prasetyo said.

Chemical castration would involve injecting convicted pedophiles with a female hormone in the hope "his sexual desire will vanish," he said.

The rape last year of a 6-year-old student by a group of janitors at the U.S. Embassy-backed Jakarta Intercultural School rekindled calls for tougher punishments.

There have been a number of other high-profile child sex crimes since then. A 9-year-old schoolgirl was raped and killed in the capital, Jakarta, earlier this month.

A 39-year-old man has been arrested in relation to that case. Police believe the girl was strangled with a cellphone charger cable, Indonesian media have reported.