A magnitude-3.9 earthquake in the Malibu area Sunday evening caused shaking in parts of Los Angeles and Ventura counties.