Ogden Police Dept. Charles Richard Jennings is accused of shooting a man who was attending church in Utah on Sunday.

A Utah man was critically injured Sunday after he was shot in the back of the head while attending Mass.

Police in Ogden, Utah, about 40 miles north of Salt Lake City, say Charles Richard Jennings, 35, entered St. James Catholic Church and confronted the victim before shooting him.

Authorities believe Jennings then pulled out a gun in the church and fired at the man, whose name has not yet been released. The victim was transported to a nearby hospital where he remained in critical condition Sunday evening.

Ogden police said in a statement that, "The suspect was specific in the desired target and action," and no one else was hurt during the altercation.

Jennings was at large earlier in the day before he was captured, following a search operation that involved authorities throughout the state.

NBC's Salt Lake City affiliate KSL-TV reported that parishioners dove under pews when they heard the gunshot.

Police said the alleged shooter is related to the victim through marriage, according to KSL.