McKinney officer credited for saving family from burning building