Egypt has carried out airstrikes on militants following a gun and bomb attack on a mosque in Sinai which killed over 300 people.