A boat carrying migrants capsized Wednesday off the coast of Egypt, killing at least 29 people and sparking an operation in which another 150 were rescued, officials said.