A whale carcass has caused the closure of beaches and waters within a 300m radius.