The 22-year-old opened the scoring after just three minutes before adding a second at the half-hour mark.
But the visitors threw away the two-goal lead to go down 3-2 at 62 minutes after Salih Ucan, Anastasios Bakasetas and Khouma Babacar scored for the hosts, Alanyaspor.
However, Ankaragucu levelled through Aliou Badji in the 65 minutes.
With eleven minutes left Alanyaspor grabbed the winner after Francois Moubandje struck to earn the home team all three points.
Painstil, who is on loan from Belgium giants KRC Genk has now scored seven times in 17 games for the Super Lig side. Read Full Story