A midnight explosion following a car crash outside a hospital in central Cairo has left 20 people dead and 47 injured, the health and interior ministries said on Monday.