Three die in apartment building fire