OAKLAND — A rookie Oakland police officer accused of using a gun while off duty to threaten a man painting his apartment door has been fired, authorities confirmed Friday.

Matthew Santos, who graduated from the Oakland Police Academy on April 3, 2015, was terminated while on probation status, authorities confirmed.

Santos was formally charged by the Alameda County District Attorney”s Office on Monday with two felony counts: false imprisonment by violence and brandishing a firearm in an incident that happened Feb. 17 in Emeryville. He is scheduled to enter a plea May 23.

He was fired before the charges were filed, authorities confirmed. No official comment was released by Oakland police and neither Santos nor an attorney for him could be reached for comment.

Emeryville police said in court documents that a painter had been hired to paint the front door of Santos” apartment and the property management firm had left a notice on his door five days earlier to notify him.

The documents state that when Santos arrived at the apartment he saw the painter painting the open front door and a security guard standing nearby.

The documents state Santos told the painter to get away from his door while pointing a pistol at him.

The scared painter ran but soon stopped and was walked by Santos at gunpoint to the leasing office, the documents say. Emeryville police were called and according to the documents the painter placed Santos under citizens arrest and he was given a notice to appear and released at the scene.

Santos is the second Oakland police officer to be criminally charged this year.

On April 8 the district attorney”s office said it charged Officer Cullen William Faeth with four misdemeanors, including two counts of misdemeanor battery, one count of trespassing and one count of public intoxication. Those charges stem from an attack Faeth is suspected of while off duty last Dec. 7 on a probation officer at her Oakland hills home. He remains on administrative leave.