Chaos erupted outside of the Barclays Center Wednesday after a man was shot nearby in broad daylight, police said, sending people in the street running for cover.

Three men were arguing near the Atlantic Center Mall on the corner of Atlantic and Flatbush avenues, across the street from the Barclays Center, when one of them opened fire just after 2 p.m., according to authorities.

The 50-year-old victim, one of the three men, was shot in the ankle and was expected to survive, police said. He was taken to Brooklyn Methodist Hospital for treatment, they added.

Danny Noel, 43, manages the Mandee clothing store at the mall and said he saw the shooter running from the scene.

"We heard gunshots. When we looked up, we saw someone with red shorts running past the window," he said. "We immediately locked the doors because we didn't know if he was going to run into the mall."

Noel said he ushered everyone in the store, including children, away from the windows, toward the back of the store in case of more shots.

advertisement | advertise on newsday

"We just took the right precautions so that everyone in the store was safe," he said. "People were panicking."

Police are searching the area, including the Atlantic Center Mall garage, for two men in connection with the shooting but so far no arrests have been made.

Marc Klein, 37, of Kensington, said he was standing near a Starbucks, talking on his phone when he heard the gunshots. 

"I thought it was fire crackers. Next thing I know people are running for safety," he said. "I didn't want to be another victim."

Hot dog vender Muhammad Alam, 47, said he heard about five or six shots and ran inside a PC Richards.

"I heard the noise; a shooting," he said. "I saw one guy fall down. I saw one guy running...I was nervous. A lot of people were scared and running."

Although investigators are still trying to determine a motive, the shooting was deemed criminal in nature, according to the NYPD's official counterterrorism Twitter account.