A two-alarm fire damaged two residential buildings in San Francisco Friday, the fire department said. The blaze broke out along the 200 block of Niagara Avenue, according to the fire department.