Thousands left homeless as firefighters battle blaze for five hours; government pledges support and investigation