Two masked gunmen opened fire at a hotel to the pyramids in Cairo as tourists boarded a coach outside, Egyptian security sources say.