The bible does not mention the Pyramids so they were built without God's permission. Satan has many powers and could have helped the Egyptians, it's not beyond possibility.
Remember what happened to those who first disturbed the tomb of Tutankhamen. The evil spirits were unleashed upon them.
There is greater mystery in the hidden world than in so called reality. Read the bible and perhaps clarity on the point can be interpreted.