You need to heal its wound in addition to taking out the arrow.
Unfortunately, the potion of Healing won't help. You'll have to find a more natural healing item.
Check your Legends and Lore of Quendor for a healing item.
Spenseweed, the plant that grows near signs, can cure the Pterodactyl.