A man has been arrested for the late-night gunfire in a Delano school bus parking lot that slightly injured a man who authorities say was the wrong target.

Joshua T. Moist, 34, of Howard Lake, was charged Thursday in Wright County District Court with attempted murder, drive-by shooting and assault with a dangerous weapon. A relative of the gunman said revenge was the motive.

Moist appeared in court Thursday and remains jailed in lieu of $750,000 bail ahead of a May 10 hearing.

Moist did not have a state permit to carry a firearm in public, said Sheriff’s Lt. Matt Treichler. He recently applied for a permit, but given this shooting, Treichler said, “This one is probably going to be denied.”

The charges said Moist followed a 36-year-old Watertown man from a nearby Holiday gas station to the bus parking lot, thinking the driver was responsible for a cousin’s drug overdose.

However, the lieutenant said, “We have no link between [the man who drew gunfire] and the overdose victim that Joshua Moist was referring to in the criminal complaint.”

The gunfire erupted about 2:20 a.m. in the Stahlke Bus Service lot along County Line Road, just north of Hwy. 12. Flying glass cut the man being pursued, and bullets also damaged two buses. There was no one in the garage or the buses at the time.

According to the complaint: Surveillance video from a business near the bus lot revealed the license plate of the car Moist was driving. A police officer located the car stuck in the mud in the Lake Rebecca Park Reserve, up the road from the shooting scene. The surveillance led to Moist’s arrest after leaving his grandmother’s Howard Lake residence. He had a loaded handgun.

The grandmother’s statement to law enforcement said Moist was trying to punish the person he believed had given his cousin a fatal overdose in June 2017.

Moist told his grandmother he was “going to take care of it,” the complaint read.