A Cape Elizabeth man is dead following a shooting in Farmington.

State Police say an autopsy will be performed today on Andrew Holland, 23.

Ryan Ouimet, 23, of Coltsneck, N.J., is charged with elevated aggravated assault in connection with the shooting and is being held at Franklin County Jail on $10,000 bail.

The shooting occurred at 10:30 p.m. Tuesday inside an apartment on High Street rented by a Massachusetts woman, 23-year-old Caroline Halloran. All three are graduates of the University of Maine in Farmington and were working together at a restaurant in Mount Vernon this summer.

The three friends were inside the apartment when the handgun, which is owned by Ouimet, went off, police said. They are still investigating to determine the circumstances. Holland was taken to Franklin Memorial Hospital by ambulance, where he died.