Dozens of people were attending a funeral inside the church as the shooting happened, police said

Two people were killed and several injured in a shooting outside a church in Salt Lake City, Utah police said on Wednesday.

The shooting took place in the parking lot of a meetinghouse of the Church of Jesus Christ of Latter-day Saints, widely known as the Mormon church.

Among at least eight adult victims, two died of their injuries, the police said, while three of the survivors were critical. The medical condition of the other victims was not known.

Dozens of people were attending a funeral inside at the time. All the victims were adults.