A fire ripped through a densely populated area of the Egyptian capital Cairo on Wednesday, killing at least 30 people, according to a toll released by the health ministry.