A magnitude 3.0 earthquake was detected by the U.S. Geological Survey near Puerto Rico.