Stoughton firefighters rescued a resident from a third-floor balcony as flames raged at an apartment building early Friday.