LIVERMORE (CBS SF) – A search for a suicidal man ended just outside the parking lot of the Livermore Police Department early Thursday where the man allegedly died of a self-inflected wound, authorities said.

According to authorities, police officers responded to a report of an armed suicidal man, but were unable to locate him.

READ MORE: COVID Reopening: Uber Expects Employees At The Office At Least 3 Days A Week

Around 3 a.m., officers returning to the station noticed the man sitting in his vehicle just outside the parking lot gate.

As they approached the vehicle on foot, they saw that the man was armed with a shotgun. The officers quickly took cover as a shot rang out.

READ MORE: COVID: Few 'Breakthrough' Infections Among Vaccinated In Sonoma County No Cause For Alarm, Experts Say

Believing they were under fire, an officer shot at the vehicle.

Moments later, officers found the man dead of an apparent self-inflicted gunshot wound to the head, authorities said.

MORE NEWS: Curry's 42, Green's Triple-Double Lead Warriors Past Thunder In Rout

No officers were injured. No other details were available as the incident remains under investigation.