Police dog returns to duty after attack which nearly took out its eye