A teenager who was trying to evade police was thwarted after getting tangled in a fence during a foot pursuit in south-east Melbourne.