Three volunteer firefighters died in Peru's capital city after a blaze consumed a shoe factory and part of a medical supply storage facility.