Six-alarm apartment fire injures 18