A yellow flag, and a special purple flag, have been raised on a beach in Tenerife after a dangerous discovery was made.