A two-alarm fire swept through part of an apartment building in Montgomery County Thursday night, injuring two people.