PHOTO: Barb Carr Moran
Now playing
01:04
Whale dies after becoming stranded on Maryland beach
robot dog
PHOTO: spotsrampage.com
robot dog
Now playing
02:22
Paintball gun mounted on robot dog
PHOTO: Newport Coastal Adventure
Now playing
00:58
Dolphin 'stampede' caught on camera
PHOTO: NBC
Now playing
01:46
'SNL' gives public figures a chance to repent
Now playing
02:21
Fans awed by Dolly Parton's humble response to a statue
Singer/songwriter Demi Lovato attends the 2018 Billboard Music Awards 2018 at the MGM Grand Resort International on May 20, 2018, in Las Vegas, Nevada (Photo by LISA O
PHOTO: LISA O'CONNOR/AFP/Getty Images
Singer/songwriter Demi Lovato attends the 2018 Billboard Music Awards 2018 at the MGM Grand Resort International on May 20, 2018, in Las Vegas, Nevada (Photo by LISA O'CONNOR / AFP) (Photo credit should read LISA O'CONNOR/AFP/Getty Images)
Now playing
01:47
A look back at Demi Lovato's career
PHOTO: Walt Disney Studios/YouTube
Now playing
02:23
Disney's 'Cruella' goes up in flames in new trailer
PHOTO: EarthCam
Now playing
01:02
See Mardi Gras 2021 versus 2020
PHOTO: Twitter/@Adam Sandler
Now playing
01:06
See Adam Sandler's iconic swing on 25th anniversary of 'Happy Gilmore'
CATANIA, ITALY - FEBRUARY 18, 2021 - Mount Etna erupts in Sicily sending plumes of ash and spewing lava into air - PHOTOGRAPH BY Marco Restivo / Barcroft Studios / Future Publishing (Photo credit should read Marco Restivo/Barcroft Media via Getty Images)
PHOTO: Barcroft Media/Barcroft Media/Barcroft Media via Getty Images
CATANIA, ITALY - FEBRUARY 18, 2021 - Mount Etna erupts in Sicily sending plumes of ash and spewing lava into air - PHOTOGRAPH BY Marco Restivo / Barcroft Studios / Future Publishing (Photo credit should read Marco Restivo/Barcroft Media via Getty Images)
Now playing
01:04
See mesmerizing footage of Mount Etna spewing lava
Ben Affleck, Gal Gadot and director Zack Snyder on the set of
PHOTO: Warner Bros.
Ben Affleck, Gal Gadot and director Zack Snyder on the set of 'Justice League.'
Now playing
01:02
See the new trailer for the 'Justice League' director's cut
PHOTO: Twitter/@misanharriman
Now playing
01:15
Inside Harry and Meghan's life after royalty
PHOTO: 'Extra TV' / Warner Bros. Television
Now playing
01:59
'Bachelor' host steps aside after comments about racism
PHOTO: NBC
Now playing
01:28
GOP senators react to Trump acquittal on 'SNL'
PHOTO: "American Idol" / ABC
Now playing
01:07
Claudia Conway makes 'American Idol' debut
PHOTO: NBC/The Tonight Show with Jimmy Fallon
Now playing
02:19
The Rock joins his mom in a ukulele duet
(CNN) —  

A young whale stranded early Sunday morning on the shore of Ocean City, Maryland, has died, the state Department of Natural Resources said.

The sperm whale was about 15 feet long and had been alive when it came onto the beach Sunday morning, DNR Capt. Melissa Scarborough told CNN.

The National Aquarium in Baltimore had sent a team to the area earlier in the day to assess the animal’s condition. The aquarium said in a statement that the juvenile appeared to be “extremely underweight.”

Sperm whales spend most of their time in deep waters and have been listed on the Endangered Species Acts since 1970, according to the National Oceanographic and Atmospheric Administration (NOAA).

Whales become stranded most often when they are ill or injured, NOAA says.

In videos, the whale is about half submerged in the water and surrounded by onlookers.

Onlookers tried to push the whale away from the beach, the aquarium statement said.

“I have been watching since 7 a.m.,” Barb Carr Moran told CNN. “It has been very sad to watch this beautiful creature die in front of us. The feeling of helplessness is overwhelming.”

The Ocean City Beach Patrol told CNN that conditions of the beach Sunday morning included 2- to 4-feet waves and nothing out of the ordinary.

The remains will be removed Sunday and a necropsy will be performed Monday to determine cause of death, the state said.

In Florida in July, crowds of people tried to help rescue crews save five distressed pilot whales in Redington Beach near St. Petersburg. Three of those animals were loaded onto boats and taken out to deeper water. The other two were taken to a local aquarium for further evaluation.