European naval forces have detained seven suspected pirates off the coast of Somalia .