iStockphoto/Thinkstock(CONCORD, N.H.) -- A New Hampshire man woke up in the middle of the night from a nightmare about a gunshot. But it turned out the nightmare was real when he discovered he was holding a gun and had shot himself in the knee.

The Concord Police Department received a call at 12:30 a.m. on July 30, said Tim O’Malley, public information officer for the department. Police would not release the man’s name; they are not planning on filing charges, and believe it was an accident.

He was taken to the hospital with serious injuries, although O’Malley said they are not life-threatening. Because police would not release his name, it was not possible to obtain information about the status of his injuries.

The man was alone in the house when the incident happened. O’Malley said police notified the man’s wife, who was at work at the time, and the wife said he was probably sleepwalking.