Piracy off the coast of Somalia declined after peaking in 2011, but resumed at a faster pace in the past year.