Earthquake statistics and plastic events in soft-glassy materials