Two people were hospitalized after a small explosion at an apartment building in Van Nuys, fire officials said.