A magnitude-6.2 earthquake has struck in the south of Indonesia's East Java province, according to the European-Mediterranean Seismological Centre on Tuesday.