A single-engine plane made an emergency landing Tuesday evening in the Atlantic Ocean just off the beach at Ocean City, Md., authorities said. No injury was reported.

Witnesses told the state police that the plane came down around 6:15 p.m. about one quarter mile from shore, near 20th Street.

The plane appeared to glide toward the water, then float on it, toward the beach, the police said. Photographs posted online showed the plane at the edge of the sand, with one wing dipping toward the water. A tip of the horizontal stabilizer appeared damaged.

Police said the pilot, whom they identified as Trevor H. Deihl , of Reedville, Va., reported taking off from Reedville for a flight to the Ocean City Airport. The plane, a 1981 Cessna 172 RG was his, the police said.

According to the police the pilot said he was about one mile from shore when he began experiencing engine trouble, and glided toward the water.

Ocean City police said the pilot at some point had swum to shore. He was said to be the plane’s sole occupant.

Ocean City police spokeswoman Jessica Waters said the pilot made “a great landing.” She also said emergency personnel made a “great response.”

Ocean City is one of the most popular beach resorts in the Mid Atlantic region. It is not clear how many people saw the plane come down.