A massive explosion shook the northern Chinese city of Tianjin late Wednesday, killing seven and injuring about 50 people, according to state media.