A school shooting has killed at least six people and injured 17 others in a rural Alabama town, according to police and authorities.

A total of 19 people were wounded in the shooting in a parking lot in rural Montgomery County, Alabama, which is about 25 miles northeast of the state capital, Birmingham.

The attack came after a school basketball game between a high school team and a neighboring school on Friday.

The gunman, identified by police as 27-year-old Michael Thomas Jones, opened fire inside the parking lot, hitting two girls, a woman and a man who were walking to school, said Montgomery County Sheriff Paul Howard.

A third person was injured.

Authorities say the school shooting was the result of a misunderstanding.

The victims ranged in age from 12 to 18 years old.

The victims ranged from school age to high school age, and the ages of the victims were not immediately released.

Authorities say the victims are all students at the school.

Police are searching for Jones, who was not armed.

They believe he knew the victims and had a gun.

The incident comes after at least 20 people were killed and 59 injured in shootings in the U.S. over the past week.

On Monday, at least 11 people were shot and killed in a gun rampage at a shopping mall in Georgia, while on Monday night a shooting at a movie theater in Aurora, Colo., killed 12 people and wounded dozens more.

The shooting in Alabama is the second time in less than a month that a school has been attacked.

On May 1, three people were fatally shot in a shooting in the small town of Shelbyville, Ala., and on Friday a gunman killed six people at a middle school in Little Rock, Ark., in what police said was an attempted school shooting.