One of two Brooklyn men trapped in a rip current Saturday night before being pulled from the water by Long Beach police died, authorities said.

Kashawn Carlos, 23, was pronounced dead at 8:13 p.m. Saturday at South Nassau Communities Hospital, said Long Beach police Sgt. Eric Irizarry

"He was in the water for almost an hour," Irizarry said, adding Carlos was pulled from the water about 7:38 p.m.

Long Beach lifeguards spotted Carlos' friend, also 23, about 6:30 p.m. having trouble in the water off Long Beach near the oceanfront Allegria Hotel, Long Beach Police Commissioner Michael Tangney said Saturday.

Lifeguards and police pulled that man, who was not identified, from the water and he was treated with a breathing apparatus, police said. The man told police he was swimming with Carlos and that Carlos went missing when waves pulled him under, police said.

An extensive search for Carlos was launched by Long Beach police, lifeguards and Nassau County aviation and Nassau County marine officers who used boats and watercrafts to patrol the water for about an hour until the man was found submerged, Tangney said.

Coast Guard officials said resources from the Jones Beach Station were dispatched and aircraft from Cape Cod also was sent to assist with the search.

Carlos was pulled ashore still alive and given CPR, police said. The first man rescued was not hurt.

Police said both men had been warned of the bad rip currents and were told to leave the water earlier in the day but they returned after lifeguards left for the day, police said.

Long Beach lifeguards made several rescues because of riptides Saturday, including minutes earlier near Edwards Boulevard, Tangney said.