A 3.1-magnitude earthquake hit near Miramichi on Friday afternoon, causing shaking and noise felt by residents across southern Northumberland County.