At least 17 migrants died after a boat carrying people believed to have departed from Libya washed ashore on Egypt's western Mediterranean coast, Egyptian officials and local media said.