Two Russian warships and a submarine in the Mediterranean have fired missiles at Islamic State group targets in Syria, the defence ministry says.