A day after two people were shot and killed in a dorm room at Central Michigan University on Friday, the police charged the victims’ son, a sophomore at the school, with murder.

The son, James E. Davis Jr., 19, had been acting strangely the day before the shooting, Chief Bill Yeagley of the Central Michigan University Police Department said at a news conference on Saturday.

He said the gun recovered at the scene was registered to Mr. Davis’s slain father, James E. Davis Sr., a police officer.

On Saturday afternoon, the university police said in a statement that Mr. Davis was in police custody at a hospital. He was charged with two counts of murder and one count of possession of a weapon to commit murder.