Russia says it has for the first time hit Islamic State targets in Syria with missiles launched from a submarine in the Mediterranean.