The Egyptian army says it has killed scores of Islamic State-linked fighters following multiple attacks on military posts in the Sinai Peninsula.