A man who was accused of trying to get into an elevator at a Florida warehouse that housed the cargo of the United States military has been arrested in the incident, authorities said Friday.

The Orlando Sentinel reported that U.S. Customs and Border Protection agents arrested 26-year-old Matthew Okechukwu of the Orlando area at his home after he was spotted walking into the freight elevator, which transports cargo from the U. S. Navy’s Camp Lejeune in North Carolina to a warehouse in Jacksonville, Florida.

Okechukwwu allegedly tried to get in and exit the elevator, the newspaper reported, and when he was apprehended he was armed with an AR-15 assault rifle.

The newspaper said Okekchukwu was also carrying two small magazines with ammunition in his pocket.

The FBI has said it is investigating the incident.

A spokesperson for the Department of Homeland Security confirmed to ABC News that the agency had been notified of the arrest.