Teenager praised after dog attack