N.H. home explodes after officer killed in shooting