SCARBOROUGH, Maine — Maine State Police said a man is being treated at Maine Medical Center after a shooting in the parking lot of Walmart in Scarborough Friday night.

Police said the victim was shot outside his vehicle and a Scarborough Police Officer, who was inside Walmart at the time, was at the scene in a few minutes.

The suspect is in custody.

One witness told NEWS CENTER Maine two people were loading groceries into their truck when another person walked up to the two and shot at them.

Other witnesses said they were locked down inside the Walmart and were not allowed to leave, after reports of gunfire.

The lock down lasted less than an hour.

Two people are being questioned.

A team of detectives from Maine State Police are investigating.

NEWS CENTER Maine STORIES 

RELATED: Report: Customs and Border Protection memo contradicts Greyhound policy on bus raids

RELATED: Multiple injuries reported at Texas high school after cellphone battery explodes, catches fire

RELATED: The High School basketball tournament is officially underway

RELATED: High-speed chase in Skowhegan ends in crash, then arrest