WINCHESTER (CBS) – A doctor and off-duty Revere police officer are being credited with pulling a 4-year-old boy from the water at Sandy Beach.

The two men were nearby and administered CPR on the boy, who was taken to a nearby hospital and then transferred to a Boston hospital. His condition is not known at this time.

A girl who was playing nearby, Jasmine Guevara, described the frantic moments when people rushed to help the boy Saturday afternoon.

“They were panicking. They were like, ‘Call the ambulance right away,'” said Jasmine Guevara.

Sandy Beach in Winchester. (WBZ-TV)

She said the men began administering chest compressions on the boy.

“The mom was panicking. The ambulance, the firefighters, the police came, and that’s when he started vomiting food. He was breathing,” Guevara said.

Those who witnessed the rescue said it was a close call.

“It was mind blowing and emotional. Everyone left where they were swimming to get out,” Guevara said.

Emergency crews responded to the beach around 3 p.m. Saturday, according to the Winchester Fire Department.

According to Massachusetts State Police, the boy was pulled from shallow water, and was alert and conscious when taken to the hospital.

Further information was not immediately available.

Watch this website and WBZ-TV for updates.