Egypt's foreign minister has delivered a warning to Ethiopia over a dam it is building on a Nile River tributary.