Magnitude 4 earthquake shakes Mediterranean region