A suspect in the shooting Saturday of an airman near Whiteman Air Force Base in Missouri is in custody, authorities said Sunday.

The 22-year-old airman was shot in his home early Saturday and critically wounded. A friend of the victim was apprehended after the shooting, the Johnson County Sheriff’s Office told FoxNews.com.

Formal charges are now pending against the friend, the sheriff’s office said.

The names of the wounded airman and the suspect were not disclosed.

Authorities said the shooting occurred at 4:40 a.m. Saturday at a home in rural Johnson County near the Whiteman Air Base.

“The shooting occurred when a male subject, who was a friend and acquaintance of the victim, fired a handgun inside of the residence,” the sheriff’s office said.

The victim was taken by ambulance to a hospital in Kansas City.

KSHB-TV on Saturday quoted a Whiteman media representative as saying the shooting was likely an accident.

“Our thoughts and prayers are with the airman, the airman’s family and all others impacted by this event,” Brig. Gen. Glen VanHerck, 509th Bomb Wing Commander, said in a statement Saturday.

Whiteman is about 75 miles southeast of Kansas City. It is home to the Air Force B-2 bombers, fighter jets and an Army National Guard Aviation Battalion.