A bank and a McDonald’s restaurant were evacuated and a school was placed on lockdown Friday after a man left a backpack containing an explosive device in a parking lot on Foothill Boulevard, officials said.

Members of the Sheriff’s Department’s bomb squad exploded the device, discovered in the lot in the 100 block of Foothill about 10 a.m.

There was a report that the man first went to Foothill Middle School, where officials asked him to leave the campus. He was then seen dropping a backpack into bushes near the Bank of America and then running through the parking lot, where officers detained him, police said.

The suspect’s name was not immediately released. He was being questioned pending booking, Flores said.

After the police found the backpack, the school was ordered into lockdown while officers searched the school for anything out of the ordinary, said Arcadia Unified School District Superintendent Joel Shawn.

Nothing was found and the school was released from lockdown about 1:30 p.m., after the object was detonated, he said.