Flames broke out at an apartment complex in southwest Bakersfield and a firefighter was hurt trying to fight that fire.