A man suspected of breaking into a San Bernardino residence early Wednesday was shot and killed, the San Bernardino Police Department said.

Shawn McElroy, 39, of San Bernardino, broke into a residence on the 300 block of S. Stoddard Avenue just before 4 a.m. on Wednesday, police said.

Officers went to the area after getting a call about a break-in and shooting. Authorities said officers found McElroy with gunshot wounds and he was pronounced dead at the scene.

Police said the motive for the shooting is under investigation.