French President Emmanuel Macron arrives at the EU-Western Balkans summit in Tivat, Montenegro, June 5. Yonhap

PUYCASQUIER, France — French President Emmanuel Macron on Friday condemned "unacceptable" lapses within the judicial system over an 11-year-old girl's killing, after it emerged that the main suspect was previously accused of sexually abusing children.

A girl, named in the press only as Lyhanna, went missing on May 29 near the southwestern town of Fleurance after she was last seen getting into a man's car.

After days of combing the countryside, investigators found the body of a child wearing the same clothes as her in an abandoned silo in the nearby village of Puycasquier on Thursday. Formal identification is under way.

A 41-year-old father of two, whose daughter was a school friend of Lyhanna, has been detained as the key suspect.