HONOLULU — The Navy has identified a man who was killed in a shooting Sunday at an Ewa Beach home.

The Navy said 41-year-old Chief Petty Officer John Ellsworth Hasselbrink, a submariner who served 22 years at Pearl Harbor, was killed in the shooting.

Hasselbrink was shot while trying to open the door of a 33-year-old Ewa Beach resident’s house in the middle of the night, according to police reports.

The resident was arrested but released Monday night without charges, pending further investigation.

The U.S. Pacific Fleet submarine force, citing police reports, said Hasselbrink had been attempting “to enter a residence other than his own by mistake.”

He died at the scene.

“Our sincerest condolences and prayers are extended to Chief Petty Officer Hasselbrink’s shipmates, friends and family,” the command said. “He was a well-respected senior enlisted leader in the Pearl Harbor submarine community and his passing is a tragic loss to the U.S. Navy and the submarine force.”

Hasselbrink, a California native, was assigned to the Virginia-class submarine USS Illinois. He joined the Navy in February 1996 and served his entire career in Pearl Harbor.

× Fear of missing out? Sign up for the Navy Times Daily News Roundup to receive the top Navy stories every afternoon. Thanks for signing up. By giving us your email, you are opting in to the Navy Times Daily News Roundup.

A memorial service will be held at the Submarine Base Chapel at Joint Base Pearl Harbor-Hickam in coming weeks.

The Navy said the incident is under investigation by the Honolulu police and the Naval Criminal Investigative Unit.