Authorities say the man accused of firing shots at five public places in Maryland learned his petition for divorce was dismissed at the height of the shooting streak.

Hong Young, 35, of Beltsville, filed for divorce in September after nearly seven years of marriage, but the case was dismissed Monday because his wife had not been served with the papers, according to Prince George's County court records.

Police captured Young Tuesday night, ending a manhunt that evoked memories of two snipers who killed 10 people in 2002 in the Washington area.

Authorities say Young chose targets at random, including a building of the National Security Agency. They're investigating a motive. No one was killed or seriously injured.

Authorities didn't know if Young had an attorney.