A man killed a woman and then shot himself in a murder-suicide at a Commack motel, Suffolk police said Wednesday.

Management at the Commack Motor Inn on Jericho Turnpike called police about 12:30 p.m. Wednesday shortly after finding the bodies in a room at the back of the complex, police said.

“It was past checkout time,” said homicide Det. Lt. Kevin Beyrer. “Management went to clean the room, and they couldn’t gain entry. Maintenance went into the room, and they found a man and a woman dead.”

The woman was not shot and her cause of death will be determined by the medical examiner, he said. A gun was found in the room, he said.

Beyrer said the man and woman live in New York state but declined to identify them further as detectives notified the next of kin Wednesday night.

The couple had checked in several days ago, police said.

advertisement | advertise on newsday

In one of the last times he was seen alive, the man had paid for the room Tuesday morning, Beyrer said. The motel requires guests to pay for each night by 11 a.m. instead of at the end of their visits.

Detectives hope to piece together a timeline of the couple’s last movements with the help of surveillance video on the grounds.

“The video will answer a lot of questions,” Beyrer said.

Just before dark, a police flatbed truck took away a silver sedan with Massachusetts plates.

Management at the motel did not return a call seeking comment.