ISLAMABAD, Pakistan — An antiterrorism court in Pakistan on Saturday sentenced to death a 24-year-old man for the murder and rape of a girl, 7, in a case that caused nationwide outrage and put a spotlight on child sexual abuse in the country.

The killer, Imran Ali, was also sentenced to life imprisonment on a count of sodomy and a large fine was imposed for desecrating the body of the girl, Zainab Amin.

During the four-day trial, Mr. Ali also confessed to raping a total of nine girls, seven of whom, including Zainab, he killed over the last 18 months, according to Ehtesham Qadir, the prosecutor general of Punjab Province.

Zainab went missing on Jan. 4 after leaving her house to take Quran lessons at her aunt’s home in Kasur, a city about 30 miles south of Lahore. Her body was found in a garbage heap near her home after five days.